mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
ath10k: prevent beacon memory leak
If DMA mapping of next beacon failed ath10k leaked the beacon. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
2ab03a6b96
commit
ad3d2153bd
1 changed files with 1 additions and 0 deletions
|
|
@ -1441,6 +1441,7 @@ static void ath10k_wmi_event_host_swba(struct ath10k *ar, struct sk_buff *skb)
|
|||
ATH10K_SKB_CB(bcn)->paddr);
|
||||
if (ret) {
|
||||
ath10k_warn("failed to map beacon: %d\n", ret);
|
||||
dev_kfree_skb_any(bcn);
|
||||
goto skip;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue