Files
linux-stable-mirror/drivers
Ma Ke eaa03ea366 drm/amdgpu/vkms: fix a possible null pointer dereference
[ Upstream commit cd90511557 ]

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>
2023-11-28 16:56:17 +00:00
..
2023-09-19 12:22:47 +02:00
2023-11-20 11:08:27 +01:00
2023-11-20 11:08:22 +01:00
2023-07-23 13:47:20 +02:00