wlan:Fix kernel panic while TDLS exit.

As a part of  TDLS exit, tdls context is freed without
explicitly setting tdls adapter as NULL. As a result, a
race condition may arise when tdls exit is called immediately
after tdls init. As a part of tdls init, driver start timers
for peerDiscovery which use tdls adapater . Since as part of tdls
exit, adapters are not set as null but are freed, timer function
might end up using memory which is freed.

As a part of fix, explicitly set adapter as null as part of tdls
exit.

Change-Id: Ia33bd713cc9ab25c3bf0493aebb7ae69dc905005
CRs-Fixed: 709550
1 file changed
tree: 7ec9bedfb540e2bbc8eff9a7f5a71651631960c3
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile