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
This commit is contained in:
Andrew Turner 2023-06-02 10:58:56 +01:00
parent 460f0aaf7b
commit 8cca8e248f

View File

@ -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;
}