diff options
author | kib <kib@FreeBSD.org> | 2014-08-24 07:59:01 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-08-24 07:59:01 +0000 |
commit | b1ece437b7748621dda38ed09f2963c1512c3d72 (patch) | |
tree | cabc606369ae00a216ddcbbe16c5e179867ef8f0 /sys/sparc64 | |
parent | 4fe668ee1aeb46cf8ac1ea15ec1905e4f1a2fcf4 (diff) | |
download | FreeBSD-src-b1ece437b7748621dda38ed09f2963c1512c3d72.zip FreeBSD-src-b1ece437b7748621dda38ed09f2963c1512c3d72.tar.gz |
MFC r270038:
Complete r254667, do not destroy pmap lock if KVA allocation failed.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/pmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index c11e741..54e0b22 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -1209,11 +1209,9 @@ pmap_pinit(pmap_t pm) */ if (pm->pm_tsb == NULL) { pm->pm_tsb = (struct tte *)kva_alloc(TSB_BSIZE); - if (pm->pm_tsb == NULL) { - PMAP_LOCK_DESTROY(pm); + if (pm->pm_tsb == NULL) return (0); } - } /* * Allocate an object for it. |