diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2023-06-02 09:58:56 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2023-06-02 15:24:15 +0000 |
commit | 8cca8e248fb7f5fb475544a08d8cdb24d26bf4b3 (patch) | |
tree | e6d42c19891271ecfdb179a4c3652fc7574b63cd | |
parent | 460f0aaf7b6ff3c57131b1c09cc5e1bb8318c539 (diff) | |
download | src-8cca8e248fb7f5fb475544a08d8cdb24d26bf4b3.tar.gz src-8cca8e248fb7f5fb475544a08d8cdb24d26bf4b3.zip |
arm64: Correct a pmap unlock in pmap_stage2_fault
This is used by bhyve so was not an issue as it is still in development.
Sponsored by: Arm Ltd
-rw-r--r-- | sys/arm64/arm64/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c index 150532b68c75..75175a102499 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -7446,7 +7446,7 @@ pmap_stage2_fault(pmap_t pmap, uint64_t esr, uint64_t far) PMAP_LOCK(pmap); pdep = pmap_pde(pmap, far, &lvl); if (pdep == NULL || lvl != (dfsc - ISS_DATA_DFSC_TF_L1)) { - PMAP_LOCK(pmap); + PMAP_UNLOCK(pmap); break; } |