summaryrefslogtreecommitdiffstats
path: root/drivers/net/hippi
diff options
context:
space:
mode:
authorruanjinjie <ruanjinjie@huawei.com>2022-09-23 17:43:20 +0800
committerJakub Kicinski <kuba@kernel.org>2022-09-26 13:22:39 -0700
commit0dc383796f9c59d7297190aa864b986eaf2f73e6 (patch)
treef7a45fc3c6f5de68ab04494080a734e5cf379e6c /drivers/net/hippi
parent4774db8dfc6a2e6649920ebb2fc8e2f062c2080d (diff)
downloadlinux-0dc383796f9c59d7297190aa864b986eaf2f73e6.tar.bz2
net: hippi: Add missing pci_disable_device() in rr_init_one()
Add missing pci_disable_device() if rr_init_one() fails Signed-off-by: ruanjinjie <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20220923094320.3109154-1-ruanjinjie@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/hippi')
-rw-r--r--drivers/net/hippi/rrunner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hippi/rrunner.c b/drivers/net/hippi/rrunner.c
index 74e845fa2e07..aa8f828a0ae7 100644
--- a/drivers/net/hippi/rrunner.c
+++ b/drivers/net/hippi/rrunner.c
@@ -213,6 +213,7 @@ static int rr_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
pci_iounmap(pdev, rrpriv->regs);
if (pdev)
pci_release_regions(pdev);
+ pci_disable_device(pdev);
out2:
free_netdev(dev);
out3: