|
@@ -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
|
|
* been given to the target to transmit, for which the
|
|
* target has never provided a response.
|
|
* 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(
|
|
ol_txrx_dbg(
|
|
"Warning: freeing tx frame (no compltn)\n");
|
|
"Warning: freeing tx frame (no compltn)\n");
|
|
ol_tx_desc_frame_free_nonstd(pdev,
|
|
ol_tx_desc_frame_free_nonstd(pdev,
|