diff options
| author | Dan Carpenter <[email protected]> | 2014-01-21 10:22:09 +0300 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2014-01-25 08:50:09 +0100 |
| commit | 2993ae3305ad10b41e0d0bc2662f7754ee8e30fa (patch) | |
| tree | a3ff55895017b1511896f6744e905311c1453f59 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | fb53a1ab88d14848dc292842e35c3bda3a665997 (diff) | |
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 <[email protected]>
Acked-by: Borislav Petkov <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Daniel J Blueman <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions