summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-08 03:40:17 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-08 03:40:17 +0100
commit43212f64320c2e136eb3d4adb5d3e8c31c637386 (patch)
treeeac0b53ae6d38604f94e77e37cbf8a874e1d28d3
parent7af85b9e74ab055d55ad20ce8dd6d9caf002d525 (diff)
mtrr: fix mistake
-rw-r--r--sys/src/9/pc/mtrr.c2
1 files changed, 1 insertions, 1 deletions
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;