Files
linux/drivers/gpu/drm/mediatek
Nishka Dasgupta a03ed2891c drm/mediatek: mtk_drm_drv.c: Add of_node_put() before goto
commit 165d42c012 upstream.

Each iteration of for_each_child_of_node puts the previous
node, but in the case of a goto from the middle of the loop, there is
no put, thus causing a memory leak. Hence add an of_node_put before the
goto in two places.
Issue found with Coccinelle.

Fixes: 119f517362 (drm/mediatek: Add DRM Driver for Mediatek SoC MT8173)

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-19 09:09:39 +02:00
..
2016-06-16 16:30:38 +02:00
2016-06-16 16:30:38 +02:00
2016-06-16 16:30:38 +02:00