sky2: Avoid races in sky2_down
commita947a39d52f5b647a2fd5eca55d39e722a2fa90f
authorMike McCormack <mikem@ring3k.org>
Wed, 22 Jul 2009 03:57:56 +0000 (21 20:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2009 03:57:56 +0000 (21 20:57 -0700)
tree5378a344f99d3206c63376cfd73fe336eb2049b9
parent86669530d966ca21f4245b9990e7ae188d433d1e
sky2: Avoid races in sky2_down

Reset rx chain before trying to drain it.
Shut interrupts off last, incase there's something to report.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c