summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-06-08 23:58:13 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-06-08 23:58:13 +0000
commit3e9360b42d2da46939807cc3415a16ff118a75e0 (patch)
tree99ef5eb36b8668db812792bc01eee1b46bac2af1
parent10a2cc008ba8d1799e6d4f9ee7f1be9c869f901d (diff)
splbio around biodone
-rw-r--r--sys/scsi/cd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 9538d3e3b35..63843c0ae9e 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.61 2002/05/23 20:29:07 csapuntz Exp $ */
+/* $OpenBSD: cd.c,v 1.62 2002/06/08 23:58:12 art Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -569,7 +569,9 @@ done:
* Correctly set the buf to indicate a completed xfer
*/
bp->b_resid = bp->b_bcount;
+ opri = splbio();
biodone(bp);
+ splx(opri);
if (cd != NULL)
device_unref(&cd->sc_dev);
}