Fix kern/13049: missing unlock on failure exit from pmap_enter()
This commit is contained in:
parent
99feaf5b29
commit
7d1ef74930
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.125 2001/05/26 16:32:41 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.126 2001/05/27 14:31:27 sommerfeld Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -2819,7 +2819,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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user