diff options
| author | Igor Artemiev <[email protected]> | 2023-04-03 13:10:37 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-04-11 22:03:43 +0000 |
| commit | 52f1783ff4146344342422c1cd94fcb4ce39b6fe (patch) | |
| tree | e7fbcb16f6c7b56da171057efaf20e76e0833318 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amd/display: 3.2.230 (diff) | |
| download | kernel-52f1783ff4146344342422c1cd94fcb4ce39b6fe.tar.gz kernel-52f1783ff4146344342422c1cd94fcb4ce39b6fe.zip | |
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: 9a71c7d31734 ("drm/amd/display: Register DMUB service with DC")
Signed-off-by: Igor Artemiev <[email protected]>
Signed-off-by: Hamza Mahfooz <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
