Gong Yuanjun a2b28708b6 drm/radeon: fix a possible null pointer dereference
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>
2022-05-26 14:56:31 -04:00
..
2022-04-25 11:17:45 +02:00
2019-12-18 16:09:13 -05:00
2022-01-18 17:43:36 -05:00
2022-01-18 17:43:36 -05:00
2021-05-13 10:45:15 -04:00
2022-01-18 17:43:36 -05:00
2021-08-05 21:18:00 -04:00
2021-04-09 16:44:26 -04:00
2022-01-18 17:43:36 -05:00
2021-02-21 14:44:44 -08:00
2022-04-25 11:17:45 +02:00
2022-04-25 11:17:45 +02:00
2022-05-03 16:08:48 +10:00
2021-08-05 21:18:00 -04:00
2022-01-18 17:43:36 -05:00
2022-01-18 17:43:36 -05: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