projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f76c392
)
[PATCH] i386: mtrr range check correction
author
Jan Beulich
<jbeulich@novell.com>
Wed, 2 May 2007 17:27:05 +0000
(19:27 +0200)
committer
Andi Kleen
<andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:05 +0000
(19:27 +0200)
Whether a region is below 1Mb is determined by its start rather than
its end.
This hunk got erroneously dropped from a previous patch.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/i386/kernel/cpu/mtrr/generic.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/i386/kernel/cpu/mtrr/generic.c
b/arch/i386/kernel/cpu/mtrr/generic.c
index f77fc53db654655ccf5477e16c3750012a1a1230..68b3837888825ec2ff0c8701eca529df2e79d02f 100644
(file)
--- a/
arch/i386/kernel/cpu/mtrr/generic.c
+++ b/
arch/i386/kernel/cpu/mtrr/generic.c
@@
-428,7
+428,7
@@
int generic_validate_add_page(unsigned long base, unsigned long size, unsigned i
}
}
- if (base
+ size
< 0x100) {
+ if (base < 0x100) {
printk(KERN_WARNING "mtrr: cannot set region below 1 MiB (0x%lx000,0x%lx000)\n",
base, size);
return -EINVAL;