]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ath9k: Free Beacon skbs in AP mode
authorJouni Malinen <j@w1.fi>
Fri, 5 Dec 2008 18:42:45 +0000 (20:42 +0200)
committerJohn 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

index 507299bf013693cfda478987e34efe174e717e17..d8742230e6241252c5c050c0baee629a4ac5220a 100644 (file)
@@ -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);