Files
linux/drivers/gpu/drm
Gong Yuanjun c17d09488c 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>
2023-06-29 09:26:24 +09:00
..
2023-05-15 16:15:25 +09:00
2023-06-29 09:26:19 +09:00
2023-05-16 12:16:39 +09:00
2016-09-19 15:04:15 +02:00
2016-09-21 13:33:50 +02:00
2018-08-14 19:41:01 -07:00
2016-09-06 13:56:41 -04:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-05-06 16:04:48 +02:00
2016-09-19 13:57:38 +02:00
2018-08-14 19:40:39 -07:00