summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-31 10:31:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-31 10:31:44 +0000
commitf628bcbf5e2f7ac832eefd360527932bd8ef3ef3 (patch)
tree8edb0c0c4c17fbfb6653abb7820e705b47035b00 /sys/dev
parent60363b44ec17a2a0e751d00b248df0879d703745 (diff)
if error, b_resid = b_bcount
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ccd.c3
1 files changed, 2 insertions, 1 deletions
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;
}