diff options
author | Mike McCormack <mikem@ring3k.org> | 2009-12-31 03:55:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-07 07:26:14 +0300 |
commit | c36531b9b2e00d9715c3a0f5788ac5311435e078 (patch) | |
tree | 54aeae5ce9b08d05370a6c96ddf0f27dadb1452c /drivers/net/atl1c/atl1c_hw.h | |
parent | c32bbff81c04096c7888aed3946ee90fdbfbc3a3 (diff) | |
download | linux-c36531b9b2e00d9715c3a0f5788ac5311435e078.tar.xz |
sky2: Lock transmit queue while disabling device
netif_device_detach() does not take the tx_lock, so it's possible that
a call to sky2_xmit_frame is still in progress after
netif_device_detach() is complete.
Take netif_tx_lock() to make sure all transmits have stopped while
we're disabling the devices and that no other CPU is still
transmitting a frame after we've disabling the device.
Proposed fix for "sky2 panic under load" reported by Berck E. Nash.
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1c/atl1c_hw.h')
0 files changed, 0 insertions, 0 deletions