drm/bridge: tfp410: fix memleak in get_modes()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 10 Jun 2019 13:57:38 +0000 (16:57 +0300)
committerAndrzej Hajda <a.hajda@samsung.com>
Fri, 14 Jun 2019 07:46:14 +0000 (09:46 +0200)
commitc08f99c39083ab55a9c93b3e93cef48711294dad
tree9817eb10981127f2759fbc3107eacdf63e84e5cf
parent51a0d1a90bff5d90a1a1c58e165928a0dd92268a
drm/bridge: tfp410: fix memleak in get_modes()

We don't free the edid blob allocated by the call to drm_get_edid(),
causing a memleak. Fix this by calling kfree(edid) at the end of the
get_modes().

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190610135739.6077-1-tomi.valkeinen@ti.com
drivers/gpu/drm/bridge/ti-tfp410.c