commit | 1c9e273ab0a3c8209bdafdca631c99c932ae647e | [log] [tgz] |
---|---|---|
author | Swaroop Golti <sgolti@qti.qualcomm.com> | Wed Jul 22 11:59:59 2015 +0530 |
committer | Swaroop Golti <sgolti@codeaurora.org> | Mon Jul 27 23:43:16 2015 +0530 |
tree | c050c77c9a7c14a5491692d746996e3ec5c3ef2e | |
parent | 65761b350cd4cc5fe243e95b5e006b114df21f85 [diff] |
wlan: Fix NULL pointer crash due to a race in accessing ROC context. In wlan_hdd_cfg80211_cancel_remain_on_channel API "is_pending_roc_cancelled" variable is not protected with a mutex. ROC context can become NULL in wlan_hdd_remain_on_channel_callback API when this gets executed in McThread context. Due to this accessing "is_pending_roc_cancelled" variable causes panic. Fix this by aquiring mutex lock. Change-Id: I950d77b31b33bd7eec963ce4d4119373faa7447f CRs-Fixed: 875771