mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-19 19:20:58 -04:00
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:
parent
85868c8753
commit
dd67f2b40d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue