]> git.baikalelectronics.ru Git - kernel.git/commit
net: sh_eth: Fix receive packet "exceeded" condition in sh_eth_rx()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 10 Jun 2014 00:40:14 +0000 (09:40 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:15:31 +0000 (15:15 -0700)
commit5ccbb88cad38bb1a0a8311361df6f409a408d308
tree10aa62a6975e4d9a33cadec7fa260cfd3e31a2b6
parent4ac15235fd4bce8befff00c538a3263a6a92ad9a
net: sh_eth: Fix receive packet "exceeded" condition in sh_eth_rx()

This patch fixes the packet "exceeded" condition in sh_eth_rx() when
RACT in an RX descriptor is not set and the "quota" is 0.
Otherwise, kernel panic happens because the "&n->poll_list" is deleted
twice in sh_eth_poll() which calls napi_complete() and net_rx_action().

Signed-off-by: Kouei Abe <kouei.abe.cp@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c