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
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 4aed3cf..05405bb 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -3868,7 +3868,7 @@
 #ifdef ANI_BUS_TYPE_SDIO
      goto err_balstop;
 #else
-     goto err_clkvote;
+     goto err_close_adapter;
 #endif
    }
 
@@ -4068,8 +4068,8 @@
 err_salstop:
    WLANSAL_Stop(pHddCtx->pvosContext);
 
-#endif
 err_clkvote:
+#endif
     vos_chipVoteOffXOBuffer(NULL, NULL, NULL);
 
 #ifdef ANI_BUS_TYPE_SDIO