[lvc-project] [PATCH] drm/amd/display: Fix potential null dereference

2023-09-29 Thread Igor Artemiev
The 'top_pipe_to_program pointer' can be NULL and it is checked at the first dereference, but not at the second. Add a check before using it. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Igor Artemiev --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 ++- 1

Re: [PATCH] drm/amd/display: Fix potential null dereference

2023-04-05 Thread Hamza Mahfooz
On 4/3/23 09:10, Igor Artemiev wrote: 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/displa

[PATCH] drm/amd/display: Fix potential null dereference

2023-04-04 Thread Igor Artemiev
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") Sig