Re: [PATCH] drm/omap: fix use of freed memory

2018-09-26 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Wednesday, 26 September 2018 13:05:59 EEST Tomi Valkeinen wrote: > omap_connector_destroy() does: > > kfree(omap_connector); > omapdss_device_put(omap_connector->output); > omapdss_device_put(omap_connector->display); > > Fix this by moving the kfree after t

[PATCH] drm/omap: fix use of freed memory

2018-09-26 Thread Tomi Valkeinen
omap_connector_destroy() does: kfree(omap_connector); omapdss_device_put(omap_connector->output); omapdss_device_put(omap_connector->display); Fix this by moving the kfree after the omapdss_device_puts. This bug was introduced in 949ea2ef3fed4e1d0f9b80ec21ed81a9833ac248 Signed-off-by: Tomi Valk