diff options
author | Ma Ke <make_ruc2021@163.com> | 2023-10-13 09:53:43 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-28 17:06:58 +0000 |
commit | 33fb1a555354bd593f785935ddcb5d9dd4d3847f (patch) | |
tree | 819c97ef957fd16f802f1b782bd0d72da8c67a9a /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | 16fa59e273f8eb20ececeb570ab41c9d3d791429 (diff) |
drm/amdgpu/vkms: fix a possible null pointer dereference
[ Upstream commit cd90511557fdfb394bb4ac4c3b539b007383914c ]
In amdgpu_vkms_conn_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 pointer
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