summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorService qcabuildsw <qcabuildsw@localhost>2016-07-13 11:12:47 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-07-13 11:12:47 -0700
commite6148d6dc8d36f9ab2001f5fe2bf463be3c9172d (patch)
tree8f1d42c7b73f52993792968bbcf0870e8e14273c
parent62fced3f524b0bec5df9714e84f80182cb01a68b (diff)
parent10415ce039ab4572060477a02ece35af9e37c91f (diff)
Merge "qcacld-3.0: Add NULL check before dereferencing pdev" into wlan-cld3.driver.lnx.1.1-dev
-rw-r--r--core/wma/src/wma_mgmt.c4
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__);