diff options
| -rw-r--r-- | arch/x86/mm/tlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 613cd83e8c0c..a085c560b4a5 100644 --- 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, | |||
| 320 | if (kstrtos8(buf, 0, &shift)) | 320 | if (kstrtos8(buf, 0, &shift)) |
| 321 | return -EINVAL; | 321 | return -EINVAL; |
| 322 | 322 | ||
| 323 | if (shift > 64) | 323 | if (shift < -1 || shift >= BITS_PER_LONG) |
| 324 | return -EINVAL; | 324 | return -EINVAL; |
| 325 | 325 | ||
| 326 | tlb_flushall_shift = shift; | 326 | tlb_flushall_shift = shift; |
