Commit d1c00ee0 authored by Lv Ruyi's avatar Lv Ruyi Committed by Zheng Zengkai
Browse files

dpaa_eth: Fix missing of_node_put in dpaa_get_ts_info()

stable inclusion
from stable-v5.10.113
commit 8d71edabb0abe6c8e3e1601e73f63f81783b6cc0
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ISAH

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



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

[ Upstream commit 1a7eb80d ]

Both of of_get_parent() and of_parse_phandle() return node pointer with
refcount incremented, use of_node_put() on it to decrease refcount
when done.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarLv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
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 d89078f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment