projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fb7639
)
can: c_can: free_c_can_dev(): add missing netif_napi_del()
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 18 Mar 2014 18:13:59 +0000
(19:13 +0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 1 Apr 2014 09:54:56 +0000
(11:54 +0200)
This patch adds the missing netif_napi_del() to the free_c_can_dev() function.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/c_can/c_can.c
b/drivers/net/can/c_can/c_can.c
index
951bfed
..
6c03731
100644
(file)
--- 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);