From 9dfc3874f14d6db2525dc579d92a3d26b8b8db65 Mon Sep 17 00:00:00 2001 From: Venkata Sharath Chandra Manchala Date: Wed, 14 Jun 2017 17:37:33 -0700 Subject: [PATCH] qcacmn: Fix for Rx descriptor pool Remove the statement nbuf pointing to NULL during allocation of descriptors as nbuf in rx_desc and next pointer in dp_rx_desc_list_elem_t share the same address space and pointing to NULL will not allocate the rx descriptors. Change-Id: If4c35202c2489aed1711173b37192f565f7c3d7b CRs-Fixed: 2061564 --- dp/wifi3.0/dp_rx_desc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dp/wifi3.0/dp_rx_desc.c b/dp/wifi3.0/dp_rx_desc.c index bfd0679a8dbc..339944141343 100644 --- a/dp/wifi3.0/dp_rx_desc.c +++ b/dp/wifi3.0/dp_rx_desc.c @@ -55,13 +55,11 @@ QDF_STATUS dp_rx_desc_pool_alloc(struct dp_soc *soc, uint32_t pool_id, rx_desc_pool->array[i].next = &rx_desc_pool->array[i+1]; rx_desc_pool->array[i].rx_desc.cookie = i | (pool_id << 18); rx_desc_pool->array[i].rx_desc.pool_id = pool_id; - rx_desc_pool->array[i].rx_desc.nbuf = NULL; } rx_desc_pool->array[i].next = NULL; rx_desc_pool->array[i].rx_desc.cookie = i | (pool_id << 18); rx_desc_pool->array[i].rx_desc.pool_id = pool_id; - rx_desc_pool->array[i].rx_desc.nbuf = NULL; qdf_spin_unlock_bh(&soc->rx_desc_mutex[pool_id]); return QDF_STATUS_SUCCESS; }