summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGeorg Hofmann <georg@hofmannsweb.com>2013-03-14 10:54:09 +0400
committerDavid S. Miller <davem@davemloft.net>2013-03-15 16:46:49 +0400
commit3f104c38259dcb3e5443c246f0805bc04d887cc3 (patch)
treee2faae3ad463612867579e91c421e7afa44a03d2 /drivers
parentd97e74976982a35168c7f131cce0d93537337a26 (diff)
downloadlinux-3f104c38259dcb3e5443c246f0805bc04d887cc3.tar.xz
net: fec: fix missing napi_disable call
Commit dc975382d2ef36be7e78fac3717927de1a5abcd8 introduces napi support but never calls napi_disable. This will generate a kernel oops (kernel BUG at include/linux/netdevice.h:473!) every time, when ndo_stop is called followed by ndo_start. Add the missing napi_diable call. Signed-off-by: Georg Hofmann <georg@hofmannsweb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/freescale/fec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c
index 61d2e6202bf3..e3f39372ce25 100644
--- a/drivers/net/ethernet/freescale/fec.c
+++ b/drivers/net/ethernet/freescale/fec.c
@@ -1441,6 +1441,7 @@ fec_enet_close(struct net_device *ndev)
struct fec_enet_private *fep = netdev_priv(ndev);
/* Don't know what to do yet. */
+ napi_disable(&fep->napi);
fep->opened = 0;
netif_stop_queue(ndev);
fec_stop(ndev);