diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-11 00:01:50 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:20 -0400 |
commit | b7413430d4d2a6168e68231d9f93763047b6d60c (patch) | |
tree | 18e85326ddb298500820252f2e510b58319b52d2 /net/mac80211/mlme.c | |
parent | 472dbc45dc1966284de72d7de15690c17ed2cf33 (diff) |
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>
Diffstat (limited to 'net/mac80211/mlme.c')
0 files changed, 0 insertions, 0 deletions