prima: validate if ROC timer is initialized

Fetching the ROC timer state without validating if the timer initialized
will lead to assert, if the ROC timer is not initialized.

To address this, ensure to check if ROC timer is initialized
before reading state of ROC timer.

CRs-Fixed: 948104
Change-Id: I4d8c4a9c8d2779b11e549d0e1a1fa7825af097b7
diff --git a/CORE/HDD/src/wlan_hdd_p2p.c b/CORE/HDD/src/wlan_hdd_p2p.c
index 1da6eb4..ac27b77 100644
--- a/CORE/HDD/src/wlan_hdd_p2p.c
+++ b/CORE/HDD/src/wlan_hdd_p2p.c
@@ -2531,6 +2531,8 @@
                  }
              }
              if (pRemainChanCtx != NULL &&
+                  vos_timer_is_initialized(
+                     &cfgState->remain_on_chan_ctx->hdd_remain_on_chan_timer) &&
                   VOS_TIMER_STATE_RUNNING != vos_timer_getCurrentState(
                       &cfgState->remain_on_chan_ctx->hdd_remain_on_chan_timer))
                  hddLog( LOG1, "%s:"