]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: fix NULL ptr deref in ISM delayed work
authorRay Wu <ray.wu@amd.com>
Tue, 7 Apr 2026 08:24:39 +0000 (16:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:23:12 +0000 (15:23 -0400)
commit17edfa32f1496df914b355cf7c0711a481765446
treec95eb20d393185de97b7e5d351064df105def132
parent7949927ad03c70582c21436442eef30269869732
drm/amd/display: fix NULL ptr deref in ISM delayed work

dc_destroy() sets dm->dc to NULL before amdgpu_dm_ism_fini() is called,
leaving a window where in-flight ISM delayed work dereferences the stale
pointer. Call amdgpu_dm_ism_fini() in amdgpu_dm_fini() before dc_destroy().

Fixes: 754003486c3c ("drm/amd/display: Add Idle state manager(ISM)")
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c