summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2026-11-04 15:26:20 +0200
committerCristian Ciocaltea <cristian.ciocaltea@collabora.com>2026-11-09 21:36:56 +0200
commit6e73b637dc16953067635d9ba2019f5645092217 (patch)
tree82924087bdf4a75b248f2b9b28b2f4868dd7c135 /tools/perf/scripts/python
parenta947f57843f1139821c6f9f94ebe899574e6636e (diff)
drm/display: hdmi: Prevent NULL pointer dereference in sync_scdc()
The connector pointer is used to initialize the local variables hdmi and dev before the NULL check takes place, leading to the following Smatch complaint: drivers/gpu/drm/display/drm_hdmi_helper.c:663 drm_connector_hdmi_sync_scdc() warn: variable dereferenced before check 'connector' (see line 657) Move those initializations after the sanity check to avoid a potential NULL pointer dereference. Fixes: d653818324ed ("drm/display: hdmi: Add HDMI 2.0 scrambling management helpers") Reported-by: Dan Carpenter <error27@gmail.com> Closes: https://lore.kernel.org/all/arJo7A7L5hud3tyc@stanley.mountain/ Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com> Link: https://patch.msgid.link/20261104-hdmi-scdc-scramb-fixes-v1-1-16a9bb3d64a6@collabora.com Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions