Loading
ARM: hisi: Add missing of_node_put after of_find_compatible_node
stable inclusion from stable-v4.19.247 commit dd4be8ecfb41a29e7c4e551b4e866157ce4a3429 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBP6KO CVE: CVE-2022-49447 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dd4be8ecfb41a29e7c4e551b4e866157ce4a3429 -------------------------------- [ 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:Peng Wu <wupeng58@huawei.com> Signed-off-by:
Wei Xu <xuwei5@hisilicon.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Huang Xiaojia <huangxiaojia2@huawei.com>