mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 20:31:13 -05:00
qcacld-3.0: Adding vdev id based sanity check for tx desc
Adding vdev id based sanity check while checking if tx desc is already freed or not in ol_tx_free_descs_inuse(). Change-Id: Icfc66ccac6829f922a76c35a3309094f374fd022 CRs-Fixed: 2035470
This commit is contained in:
parent
f4ef7ad115
commit
bda5f28213
1 changed files with 2 additions and 1 deletions
|
|
@ -1796,7 +1796,8 @@ static void ol_txrx_pdev_pre_detach(struct cdp_pdev *ppdev, int force)
|
|||
* been given to the target to transmit, for which the
|
||||
* target has never provided a response.
|
||||
*/
|
||||
if (qdf_atomic_read(&tx_desc->ref_cnt)) {
|
||||
if (qdf_atomic_read(&tx_desc->ref_cnt) &&
|
||||
tx_desc->vdev_id != OL_TXRX_INVALID_VDEV_ID) {
|
||||
ol_txrx_dbg(
|
||||
"Warning: freeing tx frame (no compltn)\n");
|
||||
ol_tx_desc_frame_free_nonstd(pdev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue