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)
commit4f809cea611f1f00a0b7a42751cb12d997a4c11c
tree10aa62a6975e4d9a33cadec7fa260cfd3e31a2b6
parent61f83d0d57f1ec42a61b47b0ace97bbf0a8523a3
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