summaryrefslogtreecommitdiff
path: root/sys/dev/isa/mcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isa/mcd.c')
-rw-r--r--sys/dev/isa/mcd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c
index bc66a2839ba..5336ebd04d1 100644
--- a/sys/dev/isa/mcd.c
+++ b/sys/dev/isa/mcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcd.c,v 1.33 2004/02/15 02:45:47 tedu Exp $ */
+/* $OpenBSD: mcd.c,v 1.34 2004/05/01 23:23:13 millert Exp $ */
/* $NetBSD: mcd.c,v 1.60 1998/01/14 12:14:41 drochner Exp $ */
/*
@@ -1273,7 +1273,8 @@ changed:
/* Invalidate the buffer. */
bp->b_flags |= B_ERROR;
bp->b_resid = bp->b_bcount - mbx->skip;
- disk_unbusy(&sc->sc_dk, (bp->b_bcount - bp->b_resid));
+ disk_unbusy(&sc->sc_dk, (bp->b_bcount - bp->b_resid),
+ (bp->b_flags & B_READ));
biodone(bp);
mcdstart(sc);