ionic: fix missing pci_release_regions() on error in ionic_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 6 May 2022 03:40:40 +0000 (11:40 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 May 2022 22:49:12 +0000 (15:49 -0700)
commite4b1045bf9cfec6f70ac6d3783be06c3a88dcb25
treeb3f5d94644216561a1de7aecb7d377508f9905f2
parentedae34a3ed9293b5077dddf9e51a3d86c95dc76a
ionic: fix missing pci_release_regions() on error in ionic_probe()

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

Fixes: fbfb8031533c ("ionic: Add hardware init and device commands")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220506034040.2614129-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c