mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacmn: fix for nbuf leak issue
Fix a nbuf leak issue in htt tx completion path for invalid peer frames Change-Id: I7818bd2cfe8144e1ea8b1d43e5e5c1de929f91cc
This commit is contained in:
parent
7b6855aa3e
commit
7d6957294f
1 changed files with 5 additions and 4 deletions
|
|
@ -3031,11 +3031,12 @@ void dp_tx_process_htt_completion(struct dp_tx_desc_s *tx_desc, uint8_t *status)
|
|||
ts.status = HAL_TX_TQM_RR_REM_CMD_REM;
|
||||
|
||||
peer = dp_peer_find_by_id(soc, ts.peer_id);
|
||||
if (qdf_likely(peer)) {
|
||||
dp_tx_comp_process_tx_status(tx_desc, &ts, peer);
|
||||
dp_tx_comp_process_desc(soc, tx_desc, &ts, peer);
|
||||
|
||||
if (qdf_likely(peer))
|
||||
dp_peer_unref_del_find_by_id(peer);
|
||||
}
|
||||
|
||||
dp_tx_comp_process_tx_status(tx_desc, &ts, peer);
|
||||
dp_tx_comp_process_desc(soc, tx_desc, &ts, peer);
|
||||
dp_tx_desc_release(tx_desc, tx_desc->pool_id);
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue