Fix kern/13049: missing unlock on failure exit from pmap_enter()
This commit is contained in:
parent
bd41422de9
commit
b1ac97973c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.65 2001/09/15 20:36:34 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.66 2001/09/19 07:54:49 chs Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -2539,7 +2539,8 @@ pmap_enter(pmap, va, pa, prot, flags)
|
|||
ptp = pmap_get_ptp(pmap, pdei(va));
|
||||
if (ptp == NULL) {
|
||||
if (flags & PMAP_CANFAIL) {
|
||||
return ENOMEM;
|
||||
error = ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
panic("pmap_enter: get ptp failed");
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.27 2001/09/15 20:36:34 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.28 2001/09/19 07:54:48 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
|
@ -3159,7 +3159,8 @@ pmap_enter(pmap, va, pa, prot, flags)
|
|||
ptp = pmap_get_ptp(pmap, pdei(va), FALSE);
|
||||
if (ptp == NULL) {
|
||||
if (flags & PMAP_CANFAIL) {
|
||||
return ENOMEM;
|
||||
error = ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
panic("pmap_enter: get ptp failed");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue