summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhanashri Atre <datre@qca.qualcomm.com>2014-11-19 11:43:36 -0800
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2014-11-20 16:57:59 +0530
commit10637d3bad3d899d2eae5786a998997d80ef1f4a (patch)
tree7ecbfc60c6bc7ca4d15d1f50254d39c896064ec2
parent5b1b7befdf33146dbc1f684c061c56543d49f366 (diff)
wlan: HTT: Fix issues reported in static analysis tool
Ensure hash table is not NULL before referencing it. Change-Id: I0600ce96847f9142729cacd7a13244b1525b5159 CRs-Fixed: 759629
-rw-r--r--CORE/CLD_TXRX/HTT/htt_rx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/CLD_TXRX/HTT/htt_rx.c b/CORE/CLD_TXRX/HTT/htt_rx.c
index 77a70faf893f..f0b7ef03a5f8 100644
--- a/CORE/CLD_TXRX/HTT/htt_rx.c
+++ b/CORE/CLD_TXRX/HTT/htt_rx.c
@@ -2360,6 +2360,10 @@ htt_rx_hash_deinit(struct htt_pdev_t *pdev)
struct htt_rx_hash_entry * hash_entry;
htt_list_node * list_iter = NULL;
+ if (NULL == pdev->rx_ring.hash_table) {
+ return;
+ }
+
for (i = 0; i < RX_NUM_HASH_BUCKETS; i++) {
/* Free the hash entries in hash bucket i */
list_iter = pdev->rx_ring.hash_table[i].listhead.next;