summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-24 08:54:25 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-24 08:54:25 +0000
commit74cf5cde2c09beda8441d23574f322be4fdcd5f3 (patch)
tree21ed18582d40740ba06cfc9b89a8a1767e72123c /sys
parent194a62ae4b91472ade5523574003f40f514c0223 (diff)
protect biodone with splbio
Diffstat (limited to 'sys')
-rw-r--r--sys/msdosfs/msdosfs_vnops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index 649d68f3f43..6058f707133 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vnops.c,v 1.36 2002/03/14 01:27:09 millert Exp $ */
+/* $OpenBSD: msdosfs_vnops.c,v 1.37 2002/05/24 08:54:24 art Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */
/*-
@@ -1758,6 +1758,7 @@ msdosfs_strategy(v)
struct denode *dep = VTODE(bp->b_vp);
struct vnode *vp;
int error = 0;
+ int s;
if (bp->b_vp->v_type == VBLK || bp->b_vp->v_type == VCHR)
panic("msdosfs_strategy: spec");
@@ -1776,7 +1777,9 @@ msdosfs_strategy(v)
clrbuf(bp);
}
if (bp->b_blkno == -1) {
+ s = splbio();
biodone(bp);
+ splx(s);
return (error);
}