Commit 21a3effe authored by Peng Wu's avatar Peng Wu Committed by Greg Kroah-Hartman
Browse files

ARM: hisi: Add missing of_node_put after of_find_compatible_node



[ Upstream commit 9bc72e47 ]

of_find_compatible_node  will increment the refcount of the returned
device_node. Calling of_node_put() to avoid the refcount leak

Signed-off-by: default avatarPeng Wu <wupeng58@huawei.com>
Signed-off-by: default avatarWei Xu <xuwei5@hisilicon.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d2b3b380
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment