mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Add HTT packet in misc_list to avoid memleak
Add HTT packet buffer in misc_list for HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG command to avoid memleak. Change-Id: I1c3fb6232c4b7dab6c10459d53e611d3358b69cc CRs-Fixed: 1001996
This commit is contained in:
parent
0696eef313
commit
194ce08855
1 changed files with 4 additions and 0 deletions
|
|
@ -178,6 +178,10 @@ A_STATUS htt_h2t_frag_desc_bank_cfg_msg(struct htt_pdev_t *pdev)
|
|||
SET_HTC_PACKET_NET_BUF_CONTEXT(&pkt->htc_pkt, msg);
|
||||
|
||||
rc = htc_send_pkt(pdev->htc_pdev, &pkt->htc_pkt);
|
||||
#ifdef ATH_11AC_TXCOMPACT
|
||||
if (rc == A_OK)
|
||||
htt_htc_misc_pkt_list_add(pdev, pkt);
|
||||
#endif
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue