projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/mm: Fix range check in tlbflush debugfs interface
[linux-2.6-block.git]
/
arch
/
x86
/
mm
/
tlb.c
diff --git
a/arch/x86/mm/tlb.c
b/arch/x86/mm/tlb.c
index 613cd83e8c0cf424bbf627973fb4af54634d8e8e..a085c560b4a53367ffcb47ee6494e33124a44ff2 100644
(file)
--- a/
arch/x86/mm/tlb.c
+++ b/
arch/x86/mm/tlb.c
@@
-320,7
+320,7
@@
static ssize_t tlbflush_write_file(struct file *file,
if (kstrtos8(buf, 0, &shift))
return -EINVAL;
- if (shift
> 64
)
+ if (shift
< -1 || shift >= BITS_PER_LONG
)
return -EINVAL;
tlb_flushall_shift = shift;