]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: use del_timer_sync for final sta cleanup timer deletion
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Dec 2012 22:08:52 +0000 (23:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:36 +0000 (08:46 -0800)
commit6a544b84195102eb875d6e7132c77ab96e45f300
tree17f384b5186a7816d373808b346f81adb4c6291b
parent52beb077553228824002fc77b701ff632423860c
mac80211: use del_timer_sync for final sta cleanup timer deletion

commit a56f992cdabc63f56b4b142885deebebf936ff76 upstream.

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.)

Tested-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c