Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad3d2153 authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo
Browse files

ath10k: prevent beacon memory leak



If DMA mapping of next beacon failed ath10k leaked
the beacon.

Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 2ab03a6b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}