mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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: 515ed4f3aa ('IB/IPoIB: Separate control and data related initializations')
Signed-off-by: Alex Vesker <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
022d038a16
commit
b53d4566cc
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue