Commit 0b83e735 authored by Yang Yingliang's avatar Yang Yingliang Committed by Zheng Zengkai
Browse files

ionic: fix missing pci_release_regions() on error in ionic_probe()

stable inclusion
from stable-v5.10.117
commit 8b1b8fc819f7dee14a93d83ef9b6b5b400e4d5cd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L66B

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



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

[ Upstream commit e4b1045b ]

If ionic_map_bars() fails, pci_release_regions() need be called.

Fixes: fbfb8031 ("ionic: Add hardware init and device commands")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220506034040.2614129-1-yangyingliang@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent ba0232c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment