From: deraadt Date: Fri, 31 Jan 1997 10:31:43 +0000 (+0000) Subject: if error, b_resid = b_bcount X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=753be97c7870194273199977fd815ba8d11f434c;p=openbsd if error, b_resid = b_bcount --- 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; }