]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix addba timer
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 29 Oct 2009 07:34:00 +0000 (08:34 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Oct 2009 19:50:25 +0000 (15:50 -0400)
commitec37d4f6574e391f19bdebf3db662d62b4f5489a
treeb4b75fad9bb425034f71cf995586dd4898c93c2f
parent6d0985ea5f87e2cadd8fa464f470adbdb139de2b
mac80211: fix addba timer

The addba timer function acquires the sta spinlock,
but at the same time we try to del_timer_sync() it
under the spinlock which can produce deadlocks.

To fix this, always del_timer_sync() the timer in
ieee80211_process_addba_resp() and add it again
after checking the conditions, if necessary.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/agg-tx.c