aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-05-22 22:04:57 -0500
committerJason Gunthorpe <jgg@mellanox.com>2020-05-25 14:24:09 -0300
commitdb857e6ae548f0f4f4a0f63fffeeedf3cca21f9d (patch)
treec2fefe6993cff1d75e974d11f0d2233a3fc4d9e0
parent189277f3814c36133f4ff0352f4b5194a38486b6 (diff)
downloadspdx-db857e6ae548f0f4f4a0f63fffeeedf3cca21f9d.tar.gz
RDMA/pvrdma: Fix missing pci disable in pvrdma_pci_probe()
In function pvrdma_pci_probe(), pdev was not disabled in one error path. Thus replace the jump target “err_free_device” by "err_disable_pdev". Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver") Link: https://lore.kernel.org/r/20200523030457.16160-1-wu000273@umn.edu Signed-off-by: Qiushi Wu <wu000273@umn.edu> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r--drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
index e580ae9cc55a5..780fd2dfc07eb 100644
--- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
+++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
@@ -829,7 +829,7 @@ static int pvrdma_pci_probe(struct pci_dev *pdev,
!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) {
dev_err(&pdev->dev, "PCI BAR region not MMIO\n");
ret = -ENOMEM;
- goto err_free_device;
+ goto err_disable_pdev;
}
ret = pci_request_regions(pdev, DRV_NAME);