From 1e0c5757515ca43926c4598f05da2d059816ead7 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Mon, 9 Feb 2015 07:08:54 +0000 Subject: Fix typo in PTE insertion overflow handling: use the page we're actually returning, not the one we just looked at. --- sys/powerpc/pseries/mmu_phyp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/powerpc/pseries') diff --git a/sys/powerpc/pseries/mmu_phyp.c b/sys/powerpc/pseries/mmu_phyp.c index c9d06e3..5f7db69 100644 --- a/sys/powerpc/pseries/mmu_phyp.c +++ b/sys/powerpc/pseries/mmu_phyp.c @@ -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); } -- cgit v1.1