ath9k: fix a memory leak in ath_rx_tasklet()
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 15 Mar 2012 20:43:29 +0000 (13:43 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Mar 2012 19:07:26 +0000 (15:07 -0400)
commitb5447ff92b5169eab843a76d83e98d0cd7b7f5b6
tree76892644681be24cece7e8a9bc7a992301420ab2
parent195ca3b122c02cf21ce64f211d9474600da80e80
ath9k: fix a memory leak in ath_rx_tasklet()

commit 0d95521ea7 (ath9k: use split rx buffers to get rid of order-1 skb
allocations) added in memory leak in error path.

sc->rx.frag should be cleared after the pskb_expand_head() call, or else
we jump to requeue_drop_frag and leak an skb.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Jouni Malinen <jouni@qca.qualcomm.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Trond Wuellner <trond@chromium.org>
Cc: Grant Grundler <grundler@chromium.org>
Cc: Paul Stewart <pstew@chromium.org>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c