mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-05 02:10:17 -05:00
mac80211: use del_timer_sync for final sta cleanup timer deletion
This is a very old bug, but there's nothing that prevents the timer from running while the module is being removed when we only do del_timer() instead of del_timer_sync(). The timer should normally not be running at this point, but it's not clearly impossible (or we could just remove this.) Cc: [email protected] Tested-by: Ben Greear <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
97f97b1f5f
commit
a56f992cda
1 changed files with 1 additions and 1 deletions
|
|
@ -884,7 +884,7 @@ void sta_info_init(struct ieee80211_local *local)
|
|||
|
||||
void sta_info_stop(struct ieee80211_local *local)
|
||||
{
|
||||
del_timer(&local->sta_cleanup);
|
||||
del_timer_sync(&local->sta_cleanup);
|
||||
sta_info_flush(local, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue