diff options
author | Colin King <[email protected]> | 2017-01-11 11:43:10 +0000 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2017-01-11 16:43:30 +0100 |
commit | ad5013d5699d30ded0cdbbc68b93b2aa28222c6e (patch) | |
tree | 79658ac336208c6288df70bade304e494ee20ab0 /lib/pm-notifier-error-inject.c | |
parent | 6d6daa20945f3f598e56e18d1f926c08754f5801 (diff) |
perf/x86/intel: Use ULL constant to prevent undefined shift behaviour
When x86_pmu.num_counters is 32 the shift of the integer constant 1 is
exceeding 32bit and therefor undefined behaviour.
Fix this by shifting 1ULL instead of 1.
Reported-by: CoverityScan CID#1192105 ("Bad bit shift operation")
Signed-off-by: Colin Ian King <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions