Files
linux/drivers/gpu/drm/radeon
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2022-05-26 14:56:31 -04:00
..
2022-04-25 11:17:45 +02: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
…
2022-04-25 11:17:45 +02:00
2022-04-25 11:17:45 +02: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