summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorEvgenii Burenchev <evg28bur@yandex.ru>2026-06-29 15:59:01 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-07-01 11:50:38 -0400
commit3b1f4d5e47b361002490d2297b344ce34dae3d55 (patch)
treec8319b6a20883f7ccff9a69a231ef8a3c06570da /tools/perf/scripts/python/flamegraph.py
parent0aeed866cb938943908c3ba46422128e49d2d080 (diff)
drm/amd/display: Fix dangling pointer in connector reset function
amdgpu_dm_connector_funcs_reset() frees the old state before allocating a new one. If kzalloc() fails, the function returns without updating the state pointer, leaving a dangling pointer to already freed memory. Fix this by allocating the new state first. On allocation failure, the old state remains untouched and the function safely returns. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: e7b07ceef2a6 ("drm/amd/display: Merge amdgpu_dm_crtc and dm_crtc_state") Signed-off-by: Evgenii Burenchev <evg28bur@yandex.ru> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Link: https://patch.msgid.link/20260629090435.9729-5-evg28bur@yandex.ru [adjust for movement around current amd-staging-drm-next] Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions