svn commit: r278434 - head/sys/powerpc/pseries

Nathan Whitehorn nwhitehorn at FreeBSD.org
Mon Feb 9 07:08:55 UTC 2015


Author: nwhitehorn
Date: Mon Feb  9 07:08:54 2015
New Revision: 278434
URL: https://svnweb.freebsd.org/changeset/base/278434

Log:
  Fix typo in PTE insertion overflow handling: use the page we're actually
  returning, not the one we just looked at.

Modified:
  head/sys/powerpc/pseries/mmu_phyp.c

Modified: head/sys/powerpc/pseries/mmu_phyp.c
==============================================================================
--- head/sys/powerpc/pseries/mmu_phyp.c	Mon Feb  9 06:20:34 2015	(r278433)
+++ head/sys/powerpc/pseries/mmu_phyp.c	Mon Feb  9 07:08:54 2015	(r278434)
@@ -299,7 +299,10 @@ mphyp_pte_spillable_ident(u_int ptegidx,
 		}
 	}
 
-	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);
 }


More information about the svn-src-head mailing list