wlan: Ignore wlan_hdd_linux_reg_notifier on (un)loading

Ignore the wlan_hdd_linux_reg_notifier call from the
reg-module if isLoadUnloadInProgress is set to TRUE.
processing wlan_hdd_linux_reg_notifier while unloading
the driver may lead to crash.

Change-Id: I6f4e0bf510b7e3a89b2dd1801d90d7cbb53f651e
CRs-Fixed: 550640
diff --git a/CORE/VOSS/src/vos_nvitem.c b/CORE/VOSS/src/vos_nvitem.c
index 31686d4..1615e5e 100644
--- a/CORE/VOSS/src/vos_nvitem.c
+++ b/CORE/VOSS/src/vos_nvitem.c
@@ -2857,6 +2857,12 @@
     wiphy_dbg(wiphy, "info: cfg80211 reg_notifier callback for country"
               " %c%c\n", request->alpha2[0], request->alpha2[1]);
 
+    if (pHddCtx->isLoadUnloadInProgress)
+    {
+        wiphy_dbg(wiphy, "info: %s: Unloading/Loading in Progress. Ignore!!!",
+                  __func__);
+        return;
+    }
     /* first check if this callback is in response to the driver callback */
 
     if (VOS_TRUE == kernel_reg_request_made) {