mirror of https://github.com/torvalds/linux.git
The left shift of int 32 bit integer constant 1 is evaluated using 32 bit
arithmetic and then passed as a 64 bit function argument. In the case where
i is 32 or more this can lead to an overflow. Avoid this by shifting
using the BIT_ULL macro instead.
Fixes:
|
||
|---|---|---|
| .. | ||
| amd | ||
| intel | ||
| zhaoxin | ||
| Kconfig | ||
| Makefile | ||
| core.c | ||
| msr.c | ||
| perf_event.h | ||
| perf_event_flags.h | ||
| probe.c | ||
| probe.h | ||
| rapl.c | ||
| utils.c | ||