ath5k: use spin_lock_irqsave for beacon lock
authorBob Copeland <me@bobcopeland.com>
Thu, 26 Mar 2009 23:05:28 +0000 (23:05 +0000)
committerChris Wright <chrisw@sous-sol.org>
Thu, 2 Apr 2009 20:55:16 +0000 (13:55 -0700)
commit8bc20526fc862d18997fd6f267a985d428fbc6e5
treef9339cb822d11678eda6792a1fc17c3d6ccc129b
parent46d2a92135c95066364a8603297b637314a85090
ath5k: use spin_lock_irqsave for beacon lock

upstream commit: b5f03956c56d72ad336e5c2c42a025f25d952c30

ath5k_reset can be called from process context, which in turn can
call ath5k_beacon_config which takes the sc->block spinlock.  Since
it can also be taken in hard irq context, use spin_lock_irqsave
everywhere.  This fixes a potential deadlock in adhoc mode.

Changes-licensed-under: 3-Clause-BSD

Cc: stable@kernel.org
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/net/wireless/ath5k/base.c