summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-05-01 23:23:13 +0000
committermillert <millert@openbsd.org>2004-05-01 23:23:13 +0000
commitac32a058a9525c1085d1cd07b00fb1ef1bf01870 (patch)
tree0c9475b4cfdc3f0cc53a8fab476ed09348f4e974
parentUpdate description of disk_unbusy(); from NetBSD (diff)
downloadwireguard-openbsd-ac32a058a9525c1085d1cd07b00fb1ef1bf01870.tar.xz
wireguard-openbsd-ac32a058a9525c1085d1cd07b00fb1ef1bf01870.zip
Fix a disk_unbusy() that was missing the 3rd argument; Georg Schwarz
-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);