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:
Himanshu Agarwal
2017-04-19 18:11:27 +05:30
committad av snandini
förälder f4ef7ad115
incheckning bda5f28213

Visa fil

@@ -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,