]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Tue, 14 Jun 2022 14:53:51 +0000 (16:53 +0200)
commit2e2e2c71b2642289438392edbf5d08cdbc0b138b
tree8c87a0b7f9cd0aebce6f05bf88404fc907d1d981
parent67a85406757d872a483331a09787abd981174bc7
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