From: Dan Carpenter Date: Tue, 25 Nov 2014 17:21:14 +0000 (+0300) Subject: x86_64/traps: Fix always true condition X-Git-Tag: omap-for-v3.20/drop-legacy-3517~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e10abb2f770eeb673d23c19980216b0fb62b4f50;p=pandora-kernel.git x86_64/traps: Fix always true condition We should be checking IS_ERR() here. PTR_ERR() is always true. Fixes: fe3d197f8431 ('x86, mpx: On-demand kernel allocation of bounds tables') Signed-off-by: Dan Carpenter Cc: Oleg Nesterov Cc: Masami Hiramatsu Cc: Andy Lutomirski Cc: Dave Hansen Link: http://lkml.kernel.org/r/20141125172114.GA24535@mwanda Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed