From 753be97c7870194273199977fd815ba8d11f434c Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 31 Jan 1997 10:31:43 +0000 Subject: [PATCH] if error, b_resid = b_bcount --- sys/dev/ccd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index d62139b68ee..0dd31541ff5 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.13 1996/12/19 18:26:58 deraadt Exp $ */ +/* $OpenBSD: ccd.c,v 1.14 1997/01/31 10:31:43 deraadt Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -644,6 +644,7 @@ ccdstrategy(bp) #endif if ((cs->sc_flags & CCDF_INITED) == 0) { bp->b_error = ENXIO; + bp->b_resid = bp->b_bcount; bp->b_flags |= B_ERROR; goto done; } -- 2.20.1