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
1 file changed
tree: c050c77c9a7c14a5491692d746996e3ec5c3ef2e
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile