git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/cpu: Fix bootup crashes by sanitizing the argument of the 'clearcpuid=' command...
[pandora-kernel.git]
/
arch
/
x86
/
kernel
/
cpu
/
common.c
diff --git
a/arch/x86/kernel/cpu/common.c
b/arch/x86/kernel/cpu/common.c
index
0cbdebf
..
83df01d
100644
(file)
--- a/
arch/x86/kernel/cpu/common.c
+++ b/
arch/x86/kernel/cpu/common.c
@@
-1012,7
+1012,7
@@
static __init int setup_disablecpuid(char *arg)
{
int bit;
- if (get_option(&arg, &bit) && bit
< NCAPINTS*
32)
+ if (get_option(&arg, &bit) && bit
>= 0 && bit < NCAPINTS *
32)
setup_clear_cpu_cap(bit);
else
return 0;