Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2015 07:08:54 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278434 - head/sys/powerpc/pseries
Message-ID:  <201502090708.t1978swm063073@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502090708.t1978swm063073>