Commit 9f3c5467 authored by Bixuan Cui's avatar Bixuan Cui Committed by Zheng Zengkai
Browse files

powerpc/44x/fsp2: add missing of_node_put

stable inclusion
from stable-5.10.80
commit c0faad6e9d56ef6ef95a6798a6ce3ef2b9d70709
bugzilla: 185821 https://gitee.com/openeuler/kernel/issues/I4L7CG

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



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

[ Upstream commit 290fe8aa ]

Early exits from for_each_compatible_node() should decrement the
node reference counter.  Reported by Coccinelle:

./arch/powerpc/platforms/44x/fsp2.c:206:1-25: WARNING: Function
"for_each_compatible_node" should have of_node_put() before return
around line 218.

Fixes: 7813043e ("powerpc/44x/fsp2: Add irq error handlers")
Signed-off-by: default avatarBixuan Cui <cuibixuan@linux.alibaba.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1635406102-88719-1-git-send-email-cuibixuan@linux.alibaba.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 314b92b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment