IB/ipoib: Limit call to free rdma_netdev for capable devices
authorAlex Vesker <valex@mellanox.com>
Wed, 14 Jun 2017 06:59:06 +0000 (09:59 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Jun 2017 19:16:23 +0000 (15:16 -0400)
commit022d038a163f9e889428789d681b97bf07730fb7
tree290c3df75277d711f118a2795242818473748624
parentab156afd3eeb68ce7b875ec8d9ff4f64d1427776
IB/ipoib: Limit call to free rdma_netdev for capable devices

Limit calls to free_rdma_netdev() for capable devices only.

Fixes: cd565b4b51e5 ('IB/IPoIB: Support acceleration options callbacks')
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/ulp/ipoib/ipoib_main.c