diff options
author | Alex Shi <alex.shi@linaro.org> | 2016-03-18 12:02:41 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-03-18 12:02:41 +0800 |
commit | 5cc3b58828a8bb2ebb34de96d1aec1564f912a31 (patch) | |
tree | 2694db57173168b3a222c25c3372cdef0b17924f /arch/x86/mm/mpx.c | |
parent | c24745baffdb7143d6f345659fb6d781b070ca50 (diff) | |
parent | 7f30737678023b5becaf0e2e012665f71b886a7d (diff) |
Merge tag 'v4.1.20' into linux-linaro-lsk-v4.1lsk-v4.1-16.03
This is the 4.1.20 stable release
Diffstat (limited to 'arch/x86/mm/mpx.c')
-rw-r--r-- | arch/x86/mm/mpx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/mpx.c b/arch/x86/mm/mpx.c index f738c61bc891..6a3c774eaff6 100644 --- a/arch/x86/mm/mpx.c +++ b/arch/x86/mm/mpx.c @@ -142,7 +142,7 @@ static int get_reg_offset(struct insn *insn, struct pt_regs *regs, break; } - if (regno > nr_registers) { + if (regno >= nr_registers) { WARN_ONCE(1, "decoded an instruction with an invalid register"); return -EINVAL; } |