ath10k: fix possible htt rx memleak
PATCH 1/1 ath10k: fix possible htt rx memleak
Signed-off-by Michal Kazior <[email protected]>
--- drivers/net/wireless/ath/ath10k/htt_rx.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/net/wireless/ath/ath10k/htt_rx.c +7 -0
@@ -718,6 +718,13 @@ static int ath10k_htt_rx_msdu(struct ath10k_htt *htt, struct htt_rx_info *info)enum rx_msdu_decap_format fmt;enum htt_rx_mpdu_encrypt_type enctype; +/* This shouldn't happen. If it does than it may be a FW bug. */ +if (skb->next) { +ath10k_warn ("received chained non A-MSDU frame\n" ); +ath10k_htt_rx_free_msdu_chain (skb->next); + skb->next =NULL ; + } + rxd = (void *)skb->data -sizeof (*rxd); fmt =MS (__le32_to_cpu (rxd->msdu_start.info1),RX_MSDU_START_INFO1_DECAP_FORMAT );
Signature · 1 line
1.7.9.5
Kalle Valo
AppliedPATCH 1/1 ath10k: fix possible htt rx memleak
Quoted 1 line · Michal Kazior
Signed-off-by Michal Kazior <[email protected]>
Thanks, applied.
Signature · 1 line
Kalle Valo