ethoc: Double check pending RX packet
authorJonas Bonn <jonas@southpole.se>
Thu, 25 Nov 2010 02:30:28 +0000 (02:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Nov 2010 19:16:36 +0000 (11:16 -0800)
commit20f70ddd6558a39a89dba4af675686c5a8dbd7b3
tree759bde727810d041ac7cab116eccaedf52cd7490
parent7438a5455734d109fdf18d97147dc57a6dbe5a44
ethoc: Double check pending RX packet

An interrupt may occur between checking bd.stat and clearing the
interrupt source register which would result in the packet going totally
unnoticed as the interrupt will be missed.  Double check bd.stat after
clearing the interrupt source register to guard against such an
occurrence.

Signed-off-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethoc.c