Skip to content

Commit db857e6

Browse files
QiushiWujgunthorpe
authored andcommitted
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: 29c8d9e ("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>
1 parent 189277f commit db857e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ static int pvrdma_pci_probe(struct pci_dev *pdev,
829829
!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) {
830830
dev_err(&pdev->dev, "PCI BAR region not MMIO\n");
831831
ret = -ENOMEM;
832-
goto err_free_device;
832+
goto err_disable_pdev;
833833
}
834834

835835
ret = pci_request_regions(pdev, DRV_NAME);

0 commit comments

Comments
 (0)