From 43212f64320c2e136eb3d4adb5d3e8c31c637386 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 8 Feb 2014 03:40:17 +0100 Subject: [PATCH] mtrr: fix mistake --- sys/src/9/pc/mtrr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/pc/mtrr.c b/sys/src/9/pc/mtrr.c index b92835d79..1d5901693 100644 --- a/sys/src/9/pc/mtrr.c +++ b/sys/src/9/pc/mtrr.c @@ -295,7 +295,7 @@ mtrr(uvlong base, uvlong size, char *tstr) for(i = 0; i < vcnt; i++){ mtrrget(&mtrr, i); mok = mtrrdec(&mtrr, &mp, &msize, &mtype); - if(slot == -1 && !mok || mtype == (def & Deftype)) + if(slot == -1 && (!mok || mtype == (def & Deftype))) slot = i; /* good, but look further for exact match */ if(mok && mp == base && msize == size){ slot = i;