udma_event.c: Do not pass a NULL resp payload for the Sciclient_rmUdmapGcfgCfg function
authorPiyali Goswami <piyali_g@ti.com>
Thu, 11 Mar 2021 03:04:13 +0000 (08:34 +0530)
committerPiyali Goswami <piyali_g@ti.com>
Thu, 11 Mar 2021 03:04:13 +0000 (08:34 +0530)
Response payload should not be NULL. The API fails in that case

Fixes: PDK-9431

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
packages/ti/drv/udma/src/udma_event.c

index 0efa65879c20754e55fe51d2be9179dd797a4c71..2c39e202659e82ea9b4886ef1d06c80a784ddf35 100755 (executable)
@@ -402,6 +402,7 @@ int32_t Udma_eventGetRxFlowIdFwStatus(Udma_EventHandle eventHandle,
         regVal = CSL_REG32_RD(&drvHandle->udmapRegs.pGenCfgRegs->RFLOWFWSTAT);
         if(CSL_FEXT(regVal, UDMAP_GCFG_RFLOWFWSTAT_PEND) != 0U)
         {
+            struct tisci_msg_rm_udmap_gcfg_cfg_resp resp;
             status->flowId  = CSL_FEXT(regVal, UDMAP_GCFG_RFLOWFWSTAT_FLOWID);
             status->chNum   = CSL_FEXT(regVal, UDMAP_GCFG_RFLOWFWSTAT_CHANNEL);
             status->isException = TRUE;
@@ -414,7 +415,7 @@ int32_t Udma_eventGetRxFlowIdFwStatus(Udma_EventHandle eventHandle,
             gcfgReq.psil_to      = 0U;  /* Not set/used */
             gcfgReq.rflowfwstat  = 0U;  /* Write 0 to clear */
             retVal = Sciclient_rmUdmapGcfgCfg(
-                         &gcfgReq, (struct tisci_msg_rm_udmap_gcfg_cfg_resp *) NULL_PTR, UDMA_SCICLIENT_TIMEOUT);
+                         &gcfgReq, &resp, UDMA_SCICLIENT_TIMEOUT);
             if(CSL_PASS != retVal)
             {
                 Udma_printf(drvHandle,