summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-24 09:33:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-24 09:33:30 +0000
commitf8fcb3932b16a157529916522c5be6e6ae035aac (patch)
treed5d7a35884c25e36265cf4ef58ea79ceab4c9bcd /sys/dev
parent45d14d9363aa78c961a2071458e65c589926bfb9 (diff)
protect biodone with splbio (this is the first time the splbio is
not really needed, just added to satisfy the assert).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/wdc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index a00c1c2917d..1db6186b76a 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.50 2002/05/24 09:24:36 art Exp $ */
+/* $OpenBSD: wdc.c,v 1.51 2002/05/24 09:33:29 art Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -2057,6 +2057,7 @@ wdc_ioctl_strategy(bp)
struct wdc_ioctl *wi;
struct wdc_command wdc_c;
int error = 0;
+ int s;
wi = wdc_ioctl_find(bp);
if (wi == NULL) {
@@ -2141,12 +2142,16 @@ wdc_ioctl_strategy(bp)
}
bp->b_error = 0;
+ s = splbio();
biodone(bp);
+ splx(s);
return;
bad:
bp->b_flags |= B_ERROR;
bp->b_error = error;
+ s = splbio();
biodone(bp);
+ splx(s);
}
int