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
This commit is contained in:
Poddar, Siddarth 2017-07-06 12:18:08 +05:30 • committed by snandini
commit dd67f2b40d

View file

@ -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;
}