diff options
| author | Kaushlendra Kumar <kaushlendra.kumar@intel.com> | 2026-10-29 14:14:29 +0530 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-10-31 13:46:33 -0300 |
| commit | 3d6fc92be1feb6436932979e4652174467e7a42a (patch) | |
| tree | 6c2cf835fd830dcd7713c5957aa8af4891b53878 /scripts/basic | |
| parent | ab6e94fb4a25278ab84ccc390f37719d13ad86f8 (diff) | |
| download | linux-3d6fc92be1feb6436932979e4652174467e7a42a.tar.gz linux-3d6fc92be1feb6436932979e4652174467e7a42a.zip | |
tools/power turbostat: Fix undefined behavior in pmt_gen_value_mask()
The function uses plain int literal '1' for bit shifting, which causes
undefined behavior when msb >= 31. This is because shifting a 32-bit int
by 32 or more bits is undefined behavior in C. Fix by using 1ULL
(unsigned long long) instead of 1 to ensure 64-bit arithmetic on all
platforms.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
