]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Fix inconsistency with free_netdev and free_rdma_netdev
authorAlex Vesker <valex@mellanox.com>
Sun, 24 Sep 2017 18:46:33 +0000 (21:46 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 25 Sep 2017 15:47:24 +0000 (11:47 -0400)
commit97d524b84c4015a0219eb773ebdf78b2187a5b3e
tree1bf5b71801a8895c4fc14c8df5c395aab5e8dac3
parent011ca4701c746243aadfc8c96813774d3ec69a93
IB/ipoib: Fix inconsistency with free_netdev and free_rdma_netdev

Call free_rdma_netdev instead of free_netdev each time we want to
release a netdevice. This call is also relevant for future freeing
of offloaded child interfaces.

This patch also adds a missing call for free netdevice when releasing
a parent interface that has child interfaces using ipoib_remove_one.

Fixes: 52a57478c4d6 ('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/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c