wlan: prevent timer callback after unload during SSR

A kernel crash was observed when a timer callback tried to execute
unmapped memory. This access appeared a short time following an
occurrence of Sub-system Restart (SSR) during wlan driver load (which
caused the driver load to be aborted).  Analysis showed that the
memory being accessed had been previously allocated to WLAN during the
module loading process.  Further analysis uncovered a code execution
path via which the wlan module was not being cleanly shut down when
the driver load was aborted.  Modify the code in hdd_wlan_startup()
such that if we are unable to instantiate an "adapter" due to a
pending SSR, perform all necessary operations needed to cleanly shut
down the driver.

Change-Id: I4cddadbf574b557bebffd14cb261522da07eb437
CRs-fixed: 418004
1 file changed
tree: 9ef0ca22bd9928d557b394c71355ba5470133712
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig