Tomi Valkeinen 3f9c1c872c drm/tilcdc: fix leak & null ref in panel_connector_get_modes
If videomode_from_timings() returns true, the mode allocated with
drm_mode_create will be leaked.

Also, the return value of drm_mode_create() is never checked, and thus
could cause NULL deref.

Fix these two issues.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200429104234.18910-1-tomi.valkeinen@ti.com
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
2020-05-19 09:56:40 +03:00
..
2020-04-30 15:08:58 -04:00
2020-04-28 16:04:00 +02:00
2020-04-28 16:13:03 +02:00
2020-04-02 14:16:44 +02:00
2020-04-21 09:02:29 +02:00
2020-04-29 18:44:26 +03:00
2020-04-02 14:16:44 +02:00
2020-04-24 20:51:24 +08:00
2020-04-17 08:12:22 +02:00
2020-03-12 12:42:56 +10:00
2020-04-03 17:11:41 +02:00
2020-04-02 14:16:45 +02:00
2020-04-02 14:16:45 +02:00
2020-04-28 16:05:15 +02:00
2020-04-17 08:12:22 +02:00
2020-04-28 15:15:59 +02:00
2020-04-17 08:12:22 +02:00
2020-03-26 15:45:36 +01:00
2020-04-17 08:12:22 +02:00
2020-04-02 14:16:46 +02:00
2020-04-03 17:11:41 +02:00
2020-04-03 17:11:41 +02:00
2020-04-28 15:05:19 +02:00
2020-04-29 18:44:26 +03:00
2020-03-16 09:27:09 +01:00
2020-04-29 18:44:26 +03:00
2020-04-03 17:11:41 +02:00
2020-03-18 14:48:34 +01:00
2020-04-28 16:05:15 +02:00
2020-04-28 16:05:15 +02:00