summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/altera
diff options
context:
space:
mode:
authorAtsushi Nemoto <nemoto@toshiba-tops.co.jp>2015-09-02 17:49:29 +0900
committerDavid S. Miller <davem@davemloft.net>2015-09-03 15:35:12 -0700
commit4548a697e4969d695047cebd6d9af5e2f6cc728e (patch)
treec08e14f94ba98c2b93b98b8819c72eb58beb6133 /drivers/net/ethernet/altera
parentdd5cdb48edfd34401799056a9acf61078d773f90 (diff)
downloadlinux-4548a697e4969d695047cebd6d9af5e2f6cc728e.tar.bz2
net: eth: altera: fix napi poll_list corruption
tse_poll() calls __napi_complete() with irq enabled. This leads napi poll_list corruption and may stop all napi drivers working. Use napi_complete() instead of __napi_complete(). Signed-off-by: Atsushi Nemoto <nemoto@toshiba-tops.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/altera')
-rw-r--r--drivers/net/ethernet/altera/altera_tse_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
index da48e66377b5..8207877d6237 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -511,8 +511,7 @@ static int tse_poll(struct napi_struct *napi, int budget)
if (rxcomplete < budget) {
- napi_gro_flush(napi, false);
- __napi_complete(napi);
+ napi_complete(napi);
netdev_dbg(priv->dev,
"NAPI Complete, did %d packets with budget %d\n",