From: Dan Carpenter Date: Tue, 21 Jan 2014 07:22:09 +0000 (+0300) Subject: x86/AMD/NB: Fix amd_set_subcaches() parameter type X-Git-Tag: v3.14-rc2~7^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2993ae3305ad10b41e0d0bc2662f7754ee8e30fa;p=pandora-kernel.git x86/AMD/NB: Fix amd_set_subcaches() parameter type This is under CAP_SYS_ADMIN, but Smatch complains that mask comes from the user and the test for "mask > 0xf" can underflow. The fix is simple: amd_set_subcaches() should hand down not an 'int' but an 'unsigned long' like it was originally indended to do. Signed-off-by: Dan Carpenter Acked-by: Borislav Petkov Cc: Borislav Petkov Cc: Daniel J Blueman Link: http://lkml.kernel.org/r/20140121072209.GA22095@elgon.mountain Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed