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:21:20 +0000 (10:21 +0200)
commitc1c4405222b6fc98c16e8c2aa679c14e41d81465
tree0dd251ff6284992762bb815e9f94d676ac7c5265
parent96fdbb1c8563ab4382937e1142dda5114360e286
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