summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2026-09-08 13:06:51 +0300
committerJani Nikula <jani.nikula@intel.com>2026-09-15 11:14:13 +0300
commitee415ce8cba154d07d02a6d2fbb27ff518264c3a (patch)
treee02d7ae7da26a087f7a702c96fe7238fc7ccf6c9 /tools/perf/scripts/python
parentfd73f4a6659897191fa0d40695fe370925dd3780 (diff)
downloadlinux-next-ee415ce8cba154d07d02a6d2fbb27ff518264c3a.tar.gz
linux-next-ee415ce8cba154d07d02a6d2fbb27ff518264c3a.zip
drm/i915/display: check configuration index before shifting
The calc_allowed_config_filter() function passes the return value of iter_pos_to_idx() directly to BIT(), but the helper can return -1 for an invalid iterator. The iterator already rejects negative indices before doing a configuration, so this should not matter in normal flows. In any case, for robustness, check the index explicitly and warn if it is negative, avoiding an undefined shift. Fixes: 39e30bdf2f92 ("drm/i915/dp_link_caps: Add link configuration iterator") Reviewed-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20260908100659.113555-1-luciano.coelho@intel.com Signed-off-by: Luca Coelho <luciano.coelho@intel.com> (cherry picked from commit fe05cb9b9fb0ecc10409c4c6133257214b6cd8c8) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions