diff options
author | neel <neel@FreeBSD.org> | 2010-04-14 01:57:53 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2010-04-14 01:57:53 +0000 |
commit | b9f6788a74b5e9a08c72daffe492c9e696130410 (patch) | |
tree | 005660b6c187af7d3a3648fdb671f9eb312073a1 | |
parent | 88551608b7559691f1e7c3045de5412f73a74a23 (diff) | |
download | FreeBSD-src-b9f6788a74b5e9a08c72daffe492c9e696130410.zip FreeBSD-src-b9f6788a74b5e9a08c72daffe492c9e696130410.tar.gz |
Destroy the pmap 'pm_mutex' in pmap_release() otherwise we will panic
subsequently in pmap_pinit() with the following signature:
panic: lock "pmap" 0xc7878bc8 already initialized
This bug was uncovered by the changes made to vm_map.c in r206140.
-rw-r--r-- | sys/mips/mips/pmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index 73f57e4..d5765ea 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -1263,6 +1263,7 @@ pmap_release(pmap_t pmap) ptdpg->wire_count--; atomic_subtract_int(&cnt.v_wire_count, 1); vm_page_free_zero(ptdpg); + PMAP_LOCK_DESTROY(pmap); } /* |