drm/omap: Fix error handling path in 'omap_dmm_probe()'
commit15e1f5cf9bff882d6948c38a6e61780e55d39c16
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 24 Sep 2017 06:01:03 +0000 (24 08:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:04:29 +0000 (3 17:04 +0100)
tree4b404c3878bb0d233d5caa0d5cbd0b7022303c90
parent51d2967fe5d518cbc17dcbe1db159a6e92eaa615
drm/omap: Fix error handling path in 'omap_dmm_probe()'

[ Upstream commit 8677b1ac2db021ab30bb1fa34f1e56ebe0051ec3 ]

If we don't find a matching device node, we must free the memory allocated
in 'omap_dmm' a few lines above.

Fixes: 7cb0d6c17b96 ("drm/omap: fix TILER on OMAP5")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c