Commit a6fcef2c authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Zheng Zengkai
Browse files

video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setup

stable inclusion
from stable-v5.10.121
commit c1c4405222b6fc98c16e8c2aa679c14e41d81465
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c1c4405222b6fc98c16e8c2aa679c14e41d81465



--------------------------------

[ Upstream commit b23789a5 ]

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: d10715be ("video: ARM CLCD: Add DT support")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent e418b110
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment