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
..
2020-03-25 11:50:48 +01:00
2022-02-07 13:04:25 -08:00
2020-11-16 15:56:34 -05:00
2021-02-17 12:52:59 +01:00
2022-04-25 11:17:45 +02:00
2022-02-14 15:08:41 -05:00
2019-12-18 16:09:13 -05:00
2022-05-04 09:53:30 -04:00
2020-11-16 15:56:35 -05:00
2022-04-11 13:50:35 -04:00
2021-09-07 13:30:50 -04:00
2022-04-26 11:43:51 -04:00
2020-11-16 15:56:35 -05:00
2022-01-18 17:43:36 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00
2022-04-19 13:58:32 -04:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:34 -05:00
2020-11-16 15:56:34 -05:00
2020-11-16 15:56:34 -05:00
2022-01-18 17:43:36 -05:00
2021-05-25 23:47:24 -04:00
2020-11-13 00:11:53 -05:00
2022-04-26 11:43:51 -04:00
2020-11-16 15:56:34 -05:00
2021-05-13 10:45:15 -04:00
2020-11-16 15:56:34 -05:00
2022-01-18 17:43:36 -05:00
2020-11-16 15:56:34 -05:00
2021-05-13 10:45:15 -04:00
2021-08-05 21:18:00 -04:00
2019-12-03 16:26:59 -05:00
2021-08-02 17:21:25 -04:00
2021-06-22 16:51:45 -04:00
2021-06-22 16:51:45 -04:00
2021-06-22 16:51:45 -04:00
2021-04-09 16:44:26 -04:00
2020-11-16 15:56:34 -05:00
2021-09-23 15:17:28 -04:00
2020-11-16 15:56:35 -05:00
2022-01-18 17:43:36 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:33 -05:00
2021-05-10 15:46:50 +02:00
2021-02-18 16:43:09 -05:00
2021-05-25 23:47:30 -04:00
2021-05-10 18:06:45 -04:00
2020-11-16 15:56:34 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:33 -05:00
2019-08-13 09:09:30 +02:00
2021-02-21 14:44:44 -08:00
2019-12-05 08:44:28 +01:00
2021-01-06 15:43:46 +01:00
2022-05-26 14:56:31 -04:00
2022-04-06 17:38:25 +02:00
2020-05-19 22:31:34 +01:00
2022-01-14 17:51:13 -05:00
2020-11-16 15:56:33 -05:00
2022-04-07 12:53:53 +02:00
2022-04-25 11:17:45 +02:00
2021-11-27 13:52:22 +01:00
2020-11-13 00:03:49 -05:00
2020-11-16 15:56:34 -05:00
2021-08-16 16:14:12 -04:00
2021-09-14 09:25:30 +02:00
2021-05-19 22:32:24 -04:00
2022-04-07 12:53:54 +02:00
2021-01-06 15:43:46 +01:00
2021-02-18 16:43:10 -05:00
2021-08-10 20:13:49 +02:00
2022-02-15 17:51:09 +01:00
2021-08-10 20:13:49 +02:00
2020-02-13 13:08:14 +01:00
2021-01-06 15:43:46 +01:00
2020-11-16 15:56:33 -05:00
2019-11-19 10:12:54 -05:00
2022-04-07 12:53:54 +02:00
2022-04-25 11:17:45 +02:00
2022-04-07 12:53:54 +02:00
2022-02-15 17:51:09 +01:00
2022-04-06 10:20:12 -04:00
2020-11-16 15:56:33 -05:00
2022-04-07 12:53:54 +02:00
2020-11-16 15:56:35 -05:00
2021-02-18 16:43:10 -05:00
2022-05-03 16:08:48 +10:00
2019-08-06 08:21:54 +02:00
2021-06-02 11:07:25 +02:00
2022-04-20 21:06:02 -04:00
2021-05-26 20:56:29 +02:00
2022-04-07 12:53:54 +02:00
2021-12-14 16:11:02 -05:00
2022-04-06 17:38:25 +02:00
2022-02-15 17:51:09 +01:00
2021-06-22 16:51:45 -04:00
2021-08-05 21:18:00 -04:00
2021-06-22 16:51:45 -04:00
2021-01-06 15:43:46 +01:00
2021-06-22 16:51:45 -04:00
2020-11-16 15:56:34 -05:00
2020-11-16 15:56:34 -05:00
2019-08-13 09:09:30 +02:00
2020-11-16 15:56:35 -05:00
2022-01-18 17:43:36 -05:00
2020-11-16 15:56:34 -05:00
2022-04-06 10:20:25 -04:00
2020-11-16 15:56:34 -05:00
2022-04-26 11:43:57 -04:00
2020-11-16 15:56:35 -05:00
2022-01-18 17:43:36 -05:00
2020-11-16 15:56:35 -05:00
2021-05-13 10:45:29 -04:00
2020-10-27 17:43:42 -04:00
2020-11-13 00:12:30 -05:00
2020-11-13 00:12:30 -05:00
2020-11-16 15:56:35 -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
2021-02-18 16:43:09 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00