mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-18 17:00:49 +01:00
Removed check for sw_dev == NODEV; this is a normal condition for swap
over NFS and was gratuitously panicing when it happens. Reviewed by: John Dyson Submitted by: Pierre Beyssac via Poul-Henning Kamp
This commit is contained in:
parent
a3028ab123
commit
956e9ca5a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8743
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vm_swap.c 8.5 (Berkeley) 2/17/94
|
||||
* $Id: vm_swap.c,v 1.18 1995/05/18 05:09:54 davidg Exp $
|
||||
* $Id: vm_swap.c,v 1.19 1995/05/19 03:27:08 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -95,8 +95,7 @@ swstrategy(bp)
|
||||
biodone(bp);
|
||||
return;
|
||||
}
|
||||
if ((bp->b_dev = sp->sw_dev) == NODEV)
|
||||
panic("swstrategy");
|
||||
bp->b_dev = sp->sw_dev;
|
||||
if (sp->sw_vp == NULL) {
|
||||
bp->b_error = ENODEV;
|
||||
bp->b_flags |= B_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user