Commit db857e6a authored by Qiushi Wu's avatar Qiushi Wu Committed by Jason Gunthorpe
Browse files

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: 29c8d9eb ("IB: Add vmw_pvrdma driver")
Link: https://lore.kernel.org/r/20200523030457.16160-1-wu000273@umn.edu


Signed-off-by: default avatarQiushi Wu <wu000273@umn.edu>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 189277f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);