Skip to content

Commit

Permalink
can: c_can: free_c_can_dev(): add missing netif_napi_del()
Browse files Browse the repository at this point in the history
This patch adds the missing netif_napi_del() to the free_c_can_dev() function.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Apr 1, 2014
1 parent 5fb7639 commit f29b423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/can/c_can/c_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,9 @@ EXPORT_SYMBOL_GPL(c_can_power_up);

void free_c_can_dev(struct net_device *dev)
{
struct c_can_priv *priv = netdev_priv(dev);

netif_napi_del(&priv->napi);
free_candev(dev);
}
EXPORT_SYMBOL_GPL(free_c_can_dev);
Expand Down

0 comments on commit f29b423

Please sign in to comment.