]> 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)
commit1622f826571c1b5c3590882608c9470f8b198b27
tree1bf5b71801a8895c4fc14c8df5c395aab5e8dac3
parent896c141f2258ac6b42a911674bdd7d598e49da91
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: 4de06a0c1569 ('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