RDMA/core: Avoid freeing netdevs in disable_device()
authorParav Pandit <parav@mellanox.com>
Mon, 15 Apr 2019 10:22:49 +0000 (13:22 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 22 Apr 2019 17:44:58 +0000 (14:44 -0300)
commit3042492bd1f9a08e9cf4c1a4621e359fb0f9a126
tree1a2862f71ba26459483335426a91809daf9beb40
parent2d959849775772d6a78ebedc68ba04ebd2904e7a
RDMA/core: Avoid freeing netdevs in disable_device()

So we can use the disable_device() helper while changing the net namespace
of the rdma device in a subsequent patch, move free_netdevs() out of it.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c