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