Commit 98422c86 authored by Pan Bian's avatar Pan Bian Committed by Zheng Zengkai
Browse files

PCI: xilinx-cpm: Fix reference count leak on error path

stable inclusion
from stable-5.10.20
commit 6a96a4413dcc85b09509f6fe87e74f9dd30cb2ce
bugzilla: 50608

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

[ Upstream commit ae191d2e ]

Also drop the reference count of the node on error path.

Link: https://lore.kernel.org/r/20210120143745.699-1-bianpan2016@163.com


Fixes: 508f6106 ("PCI: xilinx-cpm: Add Versal CPM Root Port driver")
Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent f1335ebd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment