summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2014-04-23 19:30:06 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2014-04-24 09:22:52 +0300
commitad3d2153bd5e2f616108d087ca2eb43dcb6b0741 (patch)
tree4dae17360a0ce67944a8829c47930d1b8b7d0d89
parent2ab03a6b962eb9ff34846156b324eb411837b331 (diff)
downloadop-kernel-dev-ad3d2153bd5e2f616108d087ca2eb43dcb6b0741.zip
op-kernel-dev-ad3d2153bd5e2f616108d087ca2eb43dcb6b0741.tar.gz
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>
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index 11176cc..72cc4f2 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -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;
}
OpenPOWER on IntegriCloud