Commit 5002fcf9 authored by Liang He's avatar Liang He Committed by Zheng Zengkai
Browse files

mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start

stable inclusion
from stable-v5.10.138
commit 1e39037e44d7fa3728686af146f9285ea197097d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60QFD

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



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

[ Upstream commit 7a9f743c ]

We should call of_node_put() for the reference 'uctl_node' returned by
of_get_parent() which will increase the refcount. Otherwise, there will
be a refcount leak bug.

Signed-off-by: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent 546f17d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment