OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
189277f
)
RDMA/pvrdma: Fix missing pci disable in pvrdma_pci_probe()
author
Qiushi Wu
<wu000273@umn.edu>
Sat, 23 May 2020 03:04:57 +0000
(22:04 -0500)
committer
Jason 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:
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>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
index
e580ae9
..
780fd2d
100644
(file)
--- 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);