summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-11 19:08:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-11 19:08:25 +0000
commit6ffbaceec06b4b80fda2635877439f7a2b49a113 (patch)
tree87e91dde6a27b299a7a6199346fe9c1e67398739 /sys/dev
parent724f1d496dce856f87ae3f54f4056207b2455a71 (diff)
b_resid cleanups, pointed out by minoura@kw.netlaputa.or.jp in netbsd pr#3007
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/atapi/acd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/atapi/acd.c b/sys/dev/atapi/acd.c
index 15113b3d50b..4e630eafdf8 100644
--- a/sys/dev/atapi/acd.c
+++ b/sys/dev/atapi/acd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acd.c,v 1.16 1996/12/05 13:12:11 deraadt Exp $ */
+/* $OpenBSD: acd.c,v 1.17 1996/12/11 19:08:24 deraadt Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
@@ -589,6 +589,7 @@ acdstart(vp)
if ((ad_link->flags & ADEV_MEDIA_LOADED) == 0) {
bp->b_error = EIO;
bp->b_flags |= B_ERROR;
+ bp->b_resid = bp->b_bcount;
biodone(bp);
continue;
}