ath6kl: Fix potential memory leak in ath6kl_tx_complete()
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Tue, 14 Aug 2012 04:40:34 +0000 (10:10 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 24 Oct 2012 08:49:45 +0000 (11:49 +0300)
commit8114f9b6d28686de02c3f83f0543665728b1a15b
tree8f155af56a810cc75baf847e62249ee095f37f17
parent0616dc1f2bef563d7916c0dcedbb1bff7d9bd80b
ath6kl: Fix potential memory leak in ath6kl_tx_complete()

We bail out from ath6kl_tx_complete() if any of the sanity
checks on skb and ath6kl_cookie fails. By doing this we
potentially leak few remaining buffers in packet_queue.
Make sure to proceed processing the remaining buffers
as well. This issue is found during code review.

Reported-by: Wang yufeng <yufengw@qca.qualcomm.com>
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/txrx.c