Dan Carpenter 2993ae3305 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 <dan.carpenter@oracle.com>
Acked-by: Borislav Petkov <bp@suse.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Daniel J Blueman <daniel@numascale-asia.com>
Link: http://lkml.kernel.org/r/20140121072209.GA22095@elgon.mountain
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2014-01-25 08:50:09 +01:00
..
2013-11-11 19:53:42 +01:00
2013-04-25 10:39:04 +02:00
2013-05-31 13:08:18 +02:00
2012-11-29 13:23:02 -08:00
2013-08-05 06:35:33 -07:00
2013-02-03 18:16:27 -05:00
2013-04-22 15:45:03 +09:30
2013-08-09 07:54:00 -07:00
2013-10-09 20:04:08 -05:00
2013-02-03 18:16:27 -05:00
2013-09-09 12:05:37 -04:00
2013-11-06 20:00:05 +01:00
2013-08-07 15:57:42 +02:00