diff options
author | Alex Vesker | 2017-06-14 08:59:07 +0200 |
---|---|---|
committer | Doug Ledford | 2017-06-14 21:16:23 +0200 |
commit | b53d4566cc117d9ab8d20b365ba7c2a519439725 (patch) | |
tree | 9a16933779cb4b34b388168e63b782184da689e8 /drivers/infiniband/ulp | |
parent | IB/ipoib: Limit call to free rdma_netdev for capable devices (diff) | |
download | kernel-qcow2-linux-b53d4566cc117d9ab8d20b365ba7c2a519439725.tar.gz kernel-qcow2-linux-b53d4566cc117d9ab8d20b365ba7c2a519439725.tar.xz kernel-qcow2-linux-b53d4566cc117d9ab8d20b365ba7c2a519439725.zip |
IB/ipoib: Delete napi in device uninit default
This patch mekas init_default and uninit_default symmetric
with a call to delete napi. Additionally, the uninit_default
gained delete napi call in case of init_default fails.
Fixes: 515ed4f3aab4 ('IB/IPoIB: Separate control and data related initializations')
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 91fae34bdd4f..1015a63de6ae 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -1596,6 +1596,8 @@ static void ipoib_dev_uninit_default(struct net_device *dev) ipoib_transport_dev_cleanup(dev); + netif_napi_del(&priv->napi); + ipoib_cm_dev_cleanup(dev); kfree(priv->rx_ring); @@ -1649,6 +1651,7 @@ out_rx_ring_cleanup: kfree(priv->rx_ring); out: + netif_napi_del(&priv->napi); return -ENOMEM; } |