diff options
author | Ma Ke <make_ruc2021@163.com> | 2023-10-11 09:21:43 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-28 17:06:58 +0000 |
commit | 16fa59e273f8eb20ececeb570ab41c9d3d791429 (patch) | |
tree | 2768a6961809ce797fbfdb40772571cd01d6ed97 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | d0bc9ab0a161a9745273f5bf723733a8e6c57aca (diff) |
drm/radeon: fix a possible null pointer dereference
[ Upstream commit 2c1fe3c480f9e1deefd50d4b18be4a046011ee1f ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions