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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:23:19 +0000 (08:23 +0200)
commit7200326775b007b103e7bd3addac52e74cc32a07
tree05911fb9a13687729fc64e7235562a0e41f3f495
parent66408857fd6a0318dd9d085afb935eac8a8638da
RDMA/pvrdma: Fix missing pci disable in pvrdma_pci_probe()

[ Upstream commit db857e6ae548f0f4f4a0f63fffeeedf3cca21f9d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c