summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-07-12 15:56:30 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-07-12 15:56:30 +0000
commitbb3d14f834904efe9145217161c61a0213244be6 (patch)
tree2b4944fbd851e117578ce2b75dc0e7c4b35ccbbb
parente87e084ab729c231e686628c43d037232a4aa81e (diff)
downloadFreeBSD-src-bb3d14f834904efe9145217161c61a0213244be6.zip
FreeBSD-src-bb3d14f834904efe9145217161c61a0213244be6.tar.gz
Fix check: bitwise and has only one &.
MFC after: 1 week
-rw-r--r--sys/powerpc/aim/mmu_oea64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c
index df91892..5f3e4e0 100644
--- a/sys/powerpc/aim/mmu_oea64.c
+++ b/sys/powerpc/aim/mmu_oea64.c
@@ -1978,7 +1978,7 @@ moea64_pvo_protect(mmu_t mmu, pmap_t pm, struct pvo_entry *pvo, vm_prot_t prot)
* 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);
OpenPOWER on IntegriCloud