projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61ff84a
)
ath9k: Free Beacon skbs in AP mode
author
Jouni Malinen
<j@w1.fi>
Fri, 5 Dec 2008 18:42:45 +0000
(20:42 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 12 Dec 2008 18:48:23 +0000
(13:48 -0500)
Fix a memory leak where AP mode did not free transmitted Beacon frame
skbs.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Acked-by: Pat Erley <pat-lkml@erley.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/beacon.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/ath9k/beacon.c
b/drivers/net/wireless/ath9k/beacon.c
index 507299bf013693cfda478987e34efe174e717e17..d8742230e6241252c5c050c0baee629a4ac5220a 100644
(file)
--- a/
drivers/net/wireless/ath9k/beacon.c
+++ b/
drivers/net/wireless/ath9k/beacon.c
@@
-167,6
+167,7
@@
static struct ath_buf *ath_beacon_generate(struct ath_softc *sc, int if_id)
pci_unmap_single(sc->pdev, bf->bf_dmacontext,
skb->len,
PCI_DMA_TODEVICE);
+ dev_kfree_skb_any(skb);
}
skb = ieee80211_beacon_get(sc->hw, vif);