diff options
| author | Ma Ke <[email protected]> | 2023-10-11 01:21:43 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-10-13 15:33:15 +0000 |
| commit | 2c1fe3c480f9e1deefd50d4b18be4a046011ee1f (patch) | |
| tree | d4da537da5f5e38853045ab9e6639c7624d5eb2c /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | drm/amdgpu: Correctly use bo_va->ref_count in compute VMs (diff) | |
| download | kernel-2c1fe3c480f9e1deefd50d4b18be4a046011ee1f.tar.gz kernel-2c1fe3c480f9e1deefd50d4b18be4a046011ee1f.zip | |
drm/radeon: fix a possible null pointer dereference
In radeon_tv_get_modes(), the return value of drm_cvt_mode()
is assigned to mode, which will lead to a NULL pointer
dereference on failure of drm_cvt_mode(). Add a check to
avoid null point dereference.
Signed-off-by: Ma Ke <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
