]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
mac80211: fix work race
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 10 Sep 2008 22:01:50 +0000 (00:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2008 20:48:20 +0000 (16:48 -0400)
commitb7413430d4d2a6168e68231d9f93763047b6d60c
tree18e85326ddb298500820252f2e510b58319b52d2
parent472dbc45dc1966284de72d7de15690c17ed2cf33
mac80211: fix work race

When we stop an interface, the work on it may still be pending
or running. We do cancel the timer, but we do not currently
protect against the work struct. The race is very unlikely to
hit -- it'll happen only when the driver is using mac80211's
workqueue to run long-running tasks and the sta/mesh works are
delayed for quite a bit.

This patch fixes it by cancelling the work explicitly.

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