drm/omap: handle alloc failures in omap_connector
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 2 May 2018 09:11:59 +0000 (12:11 +0300)
committerSean Paul <seanpaul@chromium.org>
Mon, 7 May 2018 14:19:12 +0000 (10:19 -0400)
commit47aaaec818dfd1009d1358974a2931f05dd57203
tree3e5a98dd92c29823bac34880ab83dc3c45a0618f
parent7f26eee572167926806b6fcb703bb5f8e452c398
drm/omap: handle alloc failures in omap_connector

Handle memory allocation failures in omap_connector to avoid NULL
derefs.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180502091159.7071-5-tomi.valkeinen@ti.com
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/omapdrm/omap_connector.c