Files
linux-stable-mirror/drivers/gpu/drm/radeon
Gong YuanjunandGreg Kroah-Hartman 7b7fba107b drm/radeon: fix a possible null pointer dereference
[ Upstream commit a2b28708b6 ]

In radeon_fp_native_mode(), the return value of drm_mode_duplicate()
is assigned to mode, which will lead to a NULL pointer dereference
on failure of drm_mode_duplicate(). Add a check to avoid npd.

The failure status of drm_cvt_mode() on the other path is checked too.

Signed-off-by: Gong Yuanjun <ruc_gongyuanjun@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:36:23 +02:00
..
2021-05-13 10:45:15 -04:00
2021-08-05 21:18:00 -04:00
2021-04-09 16:44:26 -04:00
2021-08-05 21:18:00 -04:00
2021-08-05 21:18:00 -04:00