diff options
author | ruanjinjie <ruanjinjie@huawei.com> | 2022-09-23 11:43:20 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-26 22:22:39 +0200 |
commit | 0dc383796f9c59d7297190aa864b986eaf2f73e6 (patch) | |
tree | f7a45fc3c6f5de68ab04494080a734e5cf379e6c /drivers | |
parent | net/mlxbf_gige: Fix an IS_ERR() vs NULL bug in mlxbf_gige_mdio_probe (diff) | |
download | linux-0dc383796f9c59d7297190aa864b986eaf2f73e6.tar.xz linux-0dc383796f9c59d7297190aa864b986eaf2f73e6.zip |
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')
-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: |