summaryrefslogtreecommitdiff
path: root/net/batman-adv
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-03-25 10:51:14 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-12 16:52:07 (GMT)
commit5c4a5a843043493ee5ddd9978517c4357a7245ee (patch)
tree6202f7aabd67e24da67990e61ec55d913d827faf /net/batman-adv
parent86489ad1d0346c94a575c2e370a57d3ffb9bd2ad (diff)
downloadlinux-fsl-qoriq-5c4a5a843043493ee5ddd9978517c4357a7245ee.tar.xz
mac80211: fix remain-on-channel cancel crash
commit 3fbd45ca8d1c98f3c2582ef8bc70ade42f70947b upstream. If a ROC item is canceled just as it expires, the work struct may be scheduled while it is running (and waiting for the mutex). This results in it being run after being freed, which obviously crashes. To fix this don't free it when aborting is requested but instead mark it as "to be freed", which makes the work a no-op and allows freeing it outside. Reported-by: Jouni Malinen <j@w1.fi> Tested-by: Jouni Malinen <j@w1.fi> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/batman-adv')
0 files changed, 0 insertions, 0 deletions