From dd67f2b40d715daa1a9d186241feac2646fc077a Mon Sep 17 00:00:00 2001 From: "Poddar, Siddarth" Date: Thu, 6 Jul 2017 12:18:08 +0530 Subject: [PATCH] qcacld-3.0: Clear the tx_desc ref count in free desc common function Clear the tx desc ref_cnt in ol_tx_desc_free_common as ol_tx_desc_free independently get called from some places during failure cases. Change-Id: I705061558a0419785091e0e1d0605e317e479188 CRs-Fixed: 2071116 --- core/dp/txrx/ol_tx_desc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/dp/txrx/ol_tx_desc.c b/core/dp/txrx/ol_tx_desc.c index fb8098f2cdf1..d984ac409ffc 100644 --- a/core/dp/txrx/ol_tx_desc.c +++ b/core/dp/txrx/ol_tx_desc.c @@ -409,6 +409,8 @@ static void ol_tx_desc_free_common(struct ol_txrx_pdev_t *pdev, ol_tx_desc_reset_pkt_type(tx_desc); ol_tx_desc_reset_timestamp(tx_desc); + /* clear the ref cnt */ + qdf_atomic_init(&tx_desc->ref_cnt); tx_desc->vdev_id = OL_TXRX_INVALID_VDEV_ID; }