Files
linux/drivers/gpu/drm
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
2022-02-07 16:35:35 -08:00
2022-04-25 11:17:45 +02:00
2022-04-07 11:31:52 +02:00
2022-04-25 10:18:52 +03:00
2022-02-07 16:35:35 -08:00
2022-03-16 09:36:13 +01:00
2022-02-07 16:35:35 -08:00
2022-05-04 14:09:34 +02:00
2022-04-12 09:27:20 +03:00
2022-04-07 12:53:53 +02:00
2021-11-30 09:41:28 +01:00
2021-11-30 09:41:28 +01:00
2022-02-07 16:35:35 -08:00
2022-04-12 09:27:20 +03:00