]> git.baikalelectronics.ru Git - kernel.git/commitdiff
RDMA/pvrdma: Fix missing pci disable in pvrdma_pci_probe()
authorQiushi Wu <wu000273@umn.edu>
Sat, 23 May 2020 03:04:57 +0000 (22:04 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 May 2020 17:24:09 +0000 (14:24 -0300)
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: 65cfc2528fa1 ("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>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c

index e580ae9cc55a52143362f512e369d7717beaffe3..780fd2dfc07eb03200fede1ad914ab3900af2c87 100644 (file)
@@ -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);