diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c index 951bfede8f3d80b7026b2bfba219d5c3e092f210..6c03731d7ee7aff7ce246ca4fc2a2693d945dba4 100644 --- a/drivers/net/can/c_can/c_can.c +++ b/drivers/net/can/c_can/c_can.c @@ -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);