Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4548a697 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by David S. Miller
Browse files

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: default avatarAtsushi Nemoto <nemoto@toshiba-tops.co.jp>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dd5cdb48
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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",