qcacmn: Fix the next link descriptor read issue

Link descriptor were getting freed by the pointer
of the previous freed link descriptor. This patch
fixes by copying the address of the current in a
local descriptor info and using it to free the
current.

Change-Id: I95e137ba5b1f0ad21b0e6fb39f6671e1d5b65ba6
CRs-Fixed: 2577624
This commit is contained in:
Aniruddha Paul
2019-11-27 18:48:04 +05:30
committed by nshrivas
parent efa9f5d2a9
commit 33fce952a9
7 changed files with 57 additions and 42 deletions

View File

@@ -76,6 +76,12 @@ typedef struct hal_link_desc *hal_link_desc_t;
struct hal_rxdma_desc;
typedef struct hal_rxdma_desc *hal_rxdma_desc_t;
/**
* hal_buff_addrinfo - opaque handle for DP buffer address info
*/
struct hal_buff_addrinfo;
typedef struct hal_buff_addrinfo *hal_buff_addrinfo_t;
#ifdef ENABLE_VERBOSE_DEBUG
static inline void
hal_set_verbose_debug(bool flag)