Files
linux/drivers/gpu/drm/radeon
Gong Yuanjun 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
..
2020-04-30 16:48:42 -04:00
2019-12-18 16:09:13 -05:00
2015-10-21 11:35:11 -04:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2020-04-01 14:44:43 -04:00
2021-05-13 10:45:15 -04:00
2021-08-05 21:18:00 -04:00
2015-10-21 11:35:11 -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
2019-06-10 22:30:24 +02:00
2020-09-22 17:37:38 -04:00
2020-09-22 17:37:38 -04:00
2020-09-22 17:37:38 -04:00