diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-24 08:58:42 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-24 08:58:42 +0000 |
commit | 7e339402117f656091c42a6cbc33d6bf6f8990f2 (patch) | |
tree | d5b96c0f0b737b7cc5e375c2cb2fa7918ec3a27d /sys/uvm | |
parent | 74cf5cde2c09beda8441d23574f322be4fdcd5f3 (diff) |
Protect biodone with splbio.
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_swap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index b0994f4acbc..c5d0ff18a39 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.51 2002/03/14 01:27:19 millert Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.52 2002/05/24 08:58:41 art Exp $ */ /* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */ /* @@ -1227,7 +1227,9 @@ swstrategy(bp) if (sdp == NULL) { bp->b_error = EINVAL; bp->b_flags |= B_ERROR; + s = splbio(); biodone(bp); + splx(s); UVMHIST_LOG(pdhist, " failed to get swap device", 0, 0, 0, 0); return; } |