diff options
| -rw-r--r-- | core/wma/src/wma_mgmt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index 3542ce927646..5d037b8b668e 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -2469,6 +2469,10 @@ int wma_mgmt_tx_completion_handler(void *handle, uint8_t *cmpl_event_params, struct wmi_desc_t *wmi_desc; ol_txrx_pdev_handle pdev = cds_get_context(QDF_MODULE_ID_TXRX); + if (!pdev) { + WMA_LOGE("%s: txrx pdev is NULL", __func__); + return -EINVAL; + } if (pdev == NULL) { WMA_LOGE("%s: NULL pdev pointer", __func__); |
