diff options
| author | Service qcabuildsw <qcabuildsw@localhost> | 2016-09-19 12:39:01 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-19 12:39:01 -0700 |
| commit | 146ccaa7952be23e559b4a587f7016cf36b6fbcf (patch) | |
| tree | 0974d96c27f2706c262d655b692832a8b5e46b6b | |
| parent | 918a1c1b1a9ea4096e8b0ccbdd20d61d0718a977 (diff) | |
| parent | c48ad6ed1f3eae653068ae818d87a357d62608a8 (diff) | |
Merge "qcacld-3.0: Check WMA for NULL before dereferencing" into wlan-cld3.driver.lnx.1.1-dev
| -rw-r--r-- | core/wma/src/wma_features.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index a308b0b9da47..19fc684022cd 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -7982,6 +7982,11 @@ int wma_p2p_lo_event_handler(void *handle, uint8_t *event_buf, wmi_p2p_lo_stopped_event_fixed_param *fix_param; tpAniSirGlobal p_mac = cds_get_context(QDF_MODULE_ID_PE); + if (!wma) { + WMA_LOGE("%s: Invalid WMA Context", __func__); + return -EINVAL; + } + if (!p_mac) { WMA_LOGE("%s: Invalid p_mac", __func__); return -EINVAL; |
