diff options
| author | Luca Coelho <luciano.coelho@intel.com> | 2026-06-09 12:52:38 +0300 |
|---|---|---|
| committer | Luca Coelho <luciano.coelho@intel.com> | 2026-08-13 11:20:22 +0300 |
| commit | 279b0df165e2ec4f853de03b3ee1c7961ac23513 (patch) | |
| tree | 32c68416ed146f31180cb960e3dccdf186d78d8d /tools/perf/scripts/python/stackcollapse.py | |
| parent | f80c812804c3c07b891594cfc3db02326cba36aa (diff) | |
| download | linux-279b0df165e2ec4f853de03b3ee1c7961ac23513.tar.gz linux-279b0df165e2ec4f853de03b3ee1c7961ac23513.zip | |
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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
