diff options
author | 2022-05-18 14:33:14 +0300 | |
---|---|---|
committer | 2022-05-19 11:00:46 +0300 | |
commit | 230fb39ff7e07bd0324c87acf08dd2c9b0bbcea8 (patch) | |
tree | d98cc4da24e2b35b07de5efa62d2039007527f3a /drivers/gpu/drm/i915/intel_pcode.h | |
parent | drm/i915: Ensure damage clip area is within pipe area (diff) | |
download | linux-dev-230fb39ff7e07bd0324c87acf08dd2c9b0bbcea8.tar.xz linux-dev-230fb39ff7e07bd0324c87acf08dd2c9b0bbcea8.zip |
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/20220405151517.29753-12-bp@alien8.de
Reported-by: Borislav Petkov <bp@suse.de>
Reported-by: Ruiqi GONG <gongruiqi1@huawei.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220518113315.1305027-1-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pcode.h')
0 files changed, 0 insertions, 0 deletions