From 87763eec877a2d7c34ac81d5eedebc556c4608a1 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 7 Sep 2012 07:54:52 +0100 Subject: [PATCH] --- yaml --- r: 324024 b: refs/heads/master c: d4c9dbc61fe0ca042b835c6f234af12fa5f18310 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86/mm/tlb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 12bc6aaae847..06222c7e543e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 057237bb35a605d795fd787868a1088705f26ee5 +refs/heads/master: d4c9dbc61fe0ca042b835c6f234af12fa5f18310 diff --git a/trunk/arch/x86/mm/tlb.c b/trunk/arch/x86/mm/tlb.c index 613cd83e8c0c..a085c560b4a5 100644 --- a/trunk/arch/x86/mm/tlb.c +++ b/trunk/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;