summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-11-06 09:20:16 +0000
committerMaíra Canal <mcanal@igalia.com>2026-11-09 09:26:41 -0300
commitaf200e91c7b996177aa90981b2f0e794b085d43a (patch)
tree8808c0d972a7592e6c905d2f9cc659bf333a9fdd /tools/perf/scripts/python
parent0cb7f6d9e4b1d0a411b628ccf78695ad41c66570 (diff)
drm/vc4: Fix firmware reference leak in vc4_hvs_bind()
The firmware reference taken via rpi_firmware_get() is leaked when either of the devm_clk_get() calls for the core or display clocks fails, as both error paths return without releasing it. Fix it by moving the firmware lookup below the clock lookups, so that the reference is taken right before the firmware property is read and released immediately afterwards. The rpi_firmware_find_node() call moves with it: the device node reference it returns would otherwise be leaked by those same error paths. The candidate was found by our static analysis tooling, and this change was prepared with assistance from DeepSeek-V4.1-Flash and GPT-6.1-Sol. Fixes: 2a001ca00ad5 ("drm/vc4: hdmi: Rework hdmi_enable_4kp60 detection code") Cc: stable@vger.kernel.org Suggested-by: Maíra Canal <mcanal@igalia.com> Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Link: https://patch.msgid.link/20261106092016.2282805-1-vulab@iscas.ac.cn Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions