diff options
author | Jani Nikula <[email protected]> | 2022-05-18 14:33:14 +0300 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2022-05-19 11:00:46 +0300 |
commit | 230fb39ff7e07bd0324c87acf08dd2c9b0bbcea8 (patch) | |
tree | d98cc4da24e2b35b07de5efa62d2039007527f3a /tools/perf/scripts/python | |
parent | d6774b8c3c5813aa541c9148f641d3d8d4b296d2 (diff) |
drm/i915/reg: fix undefined behavior due to shift overflowing the constant
Use REG_GENMASK() and REG_FIELD_PREP() to avoid errors due to
-fsanitize=shift.
References: https://lore.kernel.org/r/[email protected]
Reported-by: Borislav Petkov <[email protected]>
Reported-by: Ruiqi GONG <[email protected]>
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions