diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 651d5d4f75586d1703143f69efe257a712c8fad6..f73fc4a22a4d90d988228ebe8cf1fdddefbd1395 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -323,7 +323,7 @@ dotraplinkage void do_bounds(struct pt_regs *regs, long error_code) break; /* Success, it was handled */ case 1: /* Bound violation. */ info = mpx_generate_siginfo(regs, xsave_buf); - if (PTR_ERR(info)) { + if (IS_ERR(info)) { /* * We failed to decode the MPX instruction. Act as if * the exception was not caused by MPX.