]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit272e5ff3c8b3fba138d8adc2957b89a13c4118b5
tree76892644681be24cece7e8a9bc7a992301420ab2
parent08301b6edb7844f7ad872ee417602d1048dbc1a4
ath9k: fix a memory leak in ath_rx_tasklet()

commit abfc7cebad (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