diff options
| author | Jani Nikula <[email protected]> | 2022-05-18 11:33:14 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2022-05-19 09:50:29 +0000 |
| commit | 416e07a84f6ed883e0abd68c2fb868c80eea887b (patch) | |
| tree | 057a7670985fbf3a014ee88c3c900939199be0b7 /fs/btrfs/async-thread.c | |
| parent | drm/i915/gt: Fix use of static in macro mismatch (diff) | |
| download | kernel-416e07a84f6ed883e0abd68c2fb868c80eea887b.tar.gz kernel-416e07a84f6ed883e0abd68c2fb868c80eea887b.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/[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]
(cherry picked from commit 230fb39ff7e07bd0324c87acf08dd2c9b0bbcea8)
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions
