Fix typo in PTE insertion overflow handling: use the page we're actually

returning, not the one we just looked at.
This commit is contained in:
Nathan Whitehorn 2015-02-09 07:08:54 +00:00
parent 532000256b
commit 07e765cd81

View File

@ -299,7 +299,10 @@ mphyp_pte_spillable_ident(u_int ptegidx, struct lpte *to_evict)
}
}
phyp_pft_hcall(H_READ, 0, slot, 0, 0, &to_evict->pte_hi,
if (k == -1)
return (k);
phyp_pft_hcall(H_READ, 0, k, 0, 0, &to_evict->pte_hi,
&to_evict->pte_lo, &junk);
return (k);
}