powerpc64/pmap: Correct the logic for minidump KVA chunk

r279252 inverted the logic in moea64_scan_init, such that instead of
terminating when reaching a dead page, it terminates when reaching a live
page, ostensibly preserving exactly one page of KVA.
This commit is contained in:
Justin Hibbits 2018-10-21 02:28:04 +00:00
parent 54b310b892
commit d692cd43c4

View File

@ -2882,7 +2882,7 @@ moea64_scan_init(mmu_t mmu)
if (va == kmi.buffer_sva)
break;
pvo = moea64_pvo_find_va(kernel_pmap, va & ~ADDR_POFF);
if (pvo != NULL && !(pvo->pvo_vaddr & PVO_DEAD))
if (pvo == NULL || (pvo->pvo_vaddr & PVO_DEAD))
break;
va += PAGE_SIZE;
}