diff options
author | ruanjinjie <ruanjinjie@huawei.com> | 2022-09-23 17:43:20 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-26 13:22:39 -0700 |
commit | 0dc383796f9c59d7297190aa864b986eaf2f73e6 (patch) | |
tree | f7a45fc3c6f5de68ab04494080a734e5cf379e6c /drivers/net/hippi | |
parent | 4774db8dfc6a2e6649920ebb2fc8e2f062c2080d (diff) | |
download | linux-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.c | 1 |
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: |