diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-23 14:28:37 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-23 14:28:37 +0000 |
commit | 4e173dea0b98025ed47ee97aeb77dcce0510f219 (patch) | |
tree | ad93578bf3f9b0a3c4bf1c49255ebfb898cb436b | |
parent | 88ea2b7c9e2cd8f18805ee24911df612e11acd81 (diff) |
protect biodone with splbio.
-rw-r--r-- | sys/dev/ccd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index 94fab4e51b2..99eaf1dcc1c 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.47 2002/03/14 01:26:52 millert Exp $ */ +/* $OpenBSD: ccd.c,v 1.48 2002/05/23 14:28:36 art Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -733,7 +733,9 @@ ccdstrategy(bp) splx(s); return; done: + s = splbio(); biodone(bp); + splx(s); } void @@ -1002,6 +1004,8 @@ ccdintr(cs, bp) struct buf *bp; { + splassert(IPL_BIO); + #ifdef DEBUG if (ccddebug & CCDB_FOLLOW) printf("ccdintr(%p, %p)\n", cs, bp); |