IB/vmw_pvrdma: Fix incorrect cleanup on pvrdma_pci_probe error path
authorAdit Ranadive <aditr@vmware.com>
Thu, 19 Jan 2017 21:20:40 +0000 (13:20 -0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 19:15:28 +0000 (14:15 -0500)
commitff89b070b7c98eb6782361310ca7a15186f15b2c
tree6f602d6cba141565ed429a2d1100917294176ec0
parent7d211c81e97ef8505610ef82e14e302ab415bad1
IB/vmw_pvrdma: Fix incorrect cleanup on pvrdma_pci_probe error path

If the interrupt allocation failed we should start freeing the CQ rings
rather than unregistering the netdev notifier.

Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver")
Signed-off-by: Adit Ranadive <aditr@vmware.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c