Skip to content
Snippets Groups Projects
Verified Commit fe324c9a authored by Igor Artemiev's avatar Igor Artemiev Committed by Hamza Mahfooz
Browse files

drm/amd/display: Fix potential null dereference


The adev->dm.dc pointer can be NULL and dereferenced in amdgpu_dm_fini()
without checking.

Add a NULL pointer check before calling dc_dmub_srv_destroy().

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 9a71c7d3 ("drm/amd/display: Register DMUB service with DC")
Signed-off-by: default avatarIgor Artemiev <Igor.A.Artemiev@mcst.ru>
Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
parent c940e09e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment