diff options
author | 2004-05-01 23:23:13 +0000 | |
---|---|---|
committer | 2004-05-01 23:23:13 +0000 | |
commit | ac32a058a9525c1085d1cd07b00fb1ef1bf01870 (patch) | |
tree | 0c9475b4cfdc3f0cc53a8fab476ed09348f4e974 | |
parent | Update description of disk_unbusy(); from NetBSD (diff) | |
download | wireguard-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.c | 5 |
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); |