diff options
| author | Srinivas Girigowda <sgirigow@qca.qualcomm.com> | 2014-03-31 19:08:23 -0700 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-04-01 21:21:43 -0700 |
| commit | 5e7ca7bc11026d0cd518ef948c3d92a1ac4c4e3c (patch) | |
| tree | 175943eccd89b4bd263c4a4e15ff6ad8069471b2 | |
| parent | 584aab45317ef53408cd66c60fe1844a8a13a93c (diff) | |
qcacld:HDD: Fix issues reported by Static Analysis
Fix issues reported by Static Analysis
Change-Id: I2694e249eb650c16b66996dc1ddb6a5706344cc8
CRs-Fixed: 641329
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_tx_rx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_tx_rx.c b/CORE/HDD/src/wlan_hdd_tx_rx.c index 8d2062f25f55..9e855647987f 100644 --- a/CORE/HDD/src/wlan_hdd_tx_rx.c +++ b/CORE/HDD/src/wlan_hdd_tx_rx.c @@ -344,7 +344,7 @@ void hdd_mon_tx_mgmt_pkt(hdd_adapter_t* pAdapter) hdd_adapter_t* pMonAdapter = NULL; struct ieee80211_hdr *hdr; - if (pAdapter == NULL ) + if (pAdapter == NULL) { VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, FL("pAdapter is NULL")); @@ -353,6 +353,12 @@ void hdd_mon_tx_mgmt_pkt(hdd_adapter_t* pAdapter) } pMonAdapter = hdd_get_adapter( pAdapter->pHddCtx, WLAN_HDD_MONITOR ); + if (pMonAdapter == NULL) + { + hddLog(VOS_TRACE_LEVEL_ERROR, + "%s: pMonAdapter is NULL", __func__); + return; + } cfgState = WLAN_HDD_GET_CFG_STATE_PTR( pAdapter ); |
