ath5k: fix locking in tx_complete_poll_work
authorBob Copeland <me@bobcopeland.com>
Tue, 18 Jan 2011 13:06:43 +0000 (08:06 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 18 Jan 2011 20:10:31 +0000 (15:10 -0500)
ath5k_reset must be called with sc->lock.  Since the tx queue
watchdog runs in a workqueue and accesses sc, it's appropriate
to just take the lock over the whole function.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found