summaryrefslogtreecommitdiff
path: root/kernel/events
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-05-18 18:34:52 (GMT)
committerIngo Molnar <mingo@kernel.org>2013-05-28 07:13:52 (GMT)
commit13acac307528c9cd7dd9fa9c577419401527b464 (patch)
tree32087915e4a5fc93333bea87590dc109bd833d78 /kernel/events
parent62b8563979273424d6ebe9201e34d1acc133ad4f (diff)
downloadlinux-fsl-qoriq-13acac307528c9cd7dd9fa9c577419401527b464.tar.xz
perf/x86/intel: Prevent some shift wrapping bugs in the Intel uncore driver
We're trying to use 64 bit masks but the shifts wrap so we can't use the high 32 bits. I've fixed this by changing several types to unsigned long long. This is a static checker fix. The one change which is clearly needed is "mask = 0xff << (idx * 8);" where the author obviously intended to use all 64 bits. The other changes are mostly to silence my static checker. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20130518183452.GA14587@elgon.mountain Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions