summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorMa Ke <make_ruc2021@163.com>2023-10-11 09:21:43 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-10-13 11:33:15 -0400
commit2c1fe3c480f9e1deefd50d4b18be4a046011ee1f (patch)
treed4da537da5f5e38853045ab9e6639c7624d5eb2c /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentffa88b0019c20d0bacda7cd1463af86ec744d52e (diff)
downloadlinux-2c1fe3c480f9e1deefd50d4b18be4a046011ee1f.tar.gz
linux-2c1fe3c480f9e1deefd50d4b18be4a046011ee1f.tar.bz2
linux-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 <make_ruc2021@163.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions