video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setup
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 12 May 2022 11:59:08 +0000 (15:59 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:15 +0000 (10:23 +0200)
commitf2dfb4ab887d67be7d0892ba041d3c8d738d3356
treebf91f386694a389d608b1244d0875564b3407832
parent08b9d374c84a81ab88e4be6c30748681608ed707
video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setup

[ Upstream commit b23789a59fa6f00e98a319291819f91fbba0deb8 ]

of_parse_phandle() returns a node pointer with refcount incremented, we should
use of_node_put() on it when not need anymore.  Add missing of_node_put() to
avoid refcount leak.

Fixes: d10715be03bd ("video: ARM CLCD: Add DT support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/amba-clcd.c