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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:22:02 +0000 (10:22 +0200)
commitedd40f54736d716ad4e40aa6f18b0a1b79051f70
tree24e6d8f7a7154f8de1b30f4730c52ba701c0114a
parent2fa7c944e11fc1b1f5cc454f2ea16941b3bacd51
drm/bridge: tfp410: fix memleak in get_modes()

[ Upstream commit c08f99c39083ab55a9c93b3e93cef48711294dad ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/ti-tfp410.c