diff options
| author | 2026-06-09 12:52:38 +0300 | |
|---|---|---|
| committer | 2026-08-13 11:20:22 +0300 | |
| commit | 279b0df165e2ec4f853de03b3ee1c7961ac23513 (patch) | |
| tree | 32c68416ed146f31180cb960e3dccdf186d78d8d /scripts/Makefile.thinlto | |
| parent | drm/i915/display: harden shifts in ICL_DPCLKA_CFGCR0_DDI_CLK_SEL macros (diff) | |
drm/i915/display: harden shift in intel_ddi_compute_config_late()
BIT() takes a non-negative shift amount, but cpu_transcoder is of type
enum transcoder, which can in theory be INVALID_TRANSCODER (-1).
This is not a problem with the current implementation, because
cpu_transcoder is always valid when this code is reached, but it's
more robust to cast to unsigned so the shift is always well-defined.
Reviewed-by: MichaĆ Grzelak <michal.grzelak@intel.com>
Link: https://patch.msgid.link/20260609095525.570614-4-luciano.coelho@intel.com
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
