Skip to content

Commit

Permalink
b44: call netif_napi_del()
Browse files Browse the repository at this point in the history
When the driver gets unregistered a call to netif_napi_del() was
missing, this all was also missing in the error paths of
b44_init_one().

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hauke Mehrtens authored and David S. Miller committed Jun 8, 2015
1 parent c4c832f commit 1489bde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/broadcom/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -2464,6 +2464,7 @@ static int b44_init_one(struct ssb_device *sdev,
ssb_bus_may_powerdown(sdev->bus);

err_out_free_dev:
netif_napi_del(&bp->napi);
free_netdev(dev);

out:
Expand All @@ -2480,6 +2481,7 @@ static void b44_remove_one(struct ssb_device *sdev)
b44_unregister_phy_one(bp);
ssb_device_disable(sdev, 0);
ssb_bus_may_powerdown(sdev->bus);
netif_napi_del(&bp->napi);
free_netdev(dev);
ssb_pcihost_set_power_state(sdev, PCI_D3hot);
ssb_set_drvdata(sdev, NULL);
Expand Down

0 comments on commit 1489bde

Please sign in to comment.