Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2013 15:56:30 +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: r253272 - head/sys/powerpc/aim
Message-ID:  <201307121556.r6CFuU6i057122@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Fri Jul 12 15:56:30 2013
New Revision: 253272
URL: http://svnweb.freebsd.org/changeset/base/253272

Log:
  Fix check: bitwise and has only one &.
  
  MFC after:	1 week

Modified:
  head/sys/powerpc/aim/mmu_oea64.c

Modified: head/sys/powerpc/aim/mmu_oea64.c
==============================================================================
--- head/sys/powerpc/aim/mmu_oea64.c	Fri Jul 12 15:29:41 2013	(r253271)
+++ head/sys/powerpc/aim/mmu_oea64.c	Fri Jul 12 15:56:30 2013	(r253272)
@@ -1978,7 +1978,7 @@ moea64_pvo_protect(mmu_t mmu,  pmap_t pm
 	 * removed write access.
 	 */
 	if ((pvo->pvo_vaddr & PVO_MANAGED) == PVO_MANAGED && 
-	    (oldlo & LPTE_PP) != LPTE_BR && !(prot && VM_PROT_WRITE)) {
+	    (oldlo & LPTE_PP) != LPTE_BR && !(prot & VM_PROT_WRITE)) {
 		if (pg != NULL) {
 			if (pvo->pvo_pte.lpte.pte_lo & LPTE_CHG)
 				vm_page_dirty(pg);



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