]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Fix htc_packet leak in ath6kl_htc_rx_process_packets()
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Mon, 3 Oct 2011 11:58:07 +0000 (17:28 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:50:54 +0000 (12:50 +0200)
commit81abd63f521e75b107820d27c85c3cd216ae896e
tree7e5a7bf27f7d7e717173c9636820ac84bd9ecb3d
parent46230a9cfb64d10cb0f13eb24a2e50be4c91ebb5
ath6kl: Fix htc_packet leak in ath6kl_htc_rx_process_packets()

Packet is not reclaimed when ath6kl_htc_rx_process_hdr() fails.
Fix this by deferring the packet deletion from comp_pktq till
ath6kl_htc_rx_process_hdr() returns success. This bug is found
in code review, impact is not easily visible as the leak happens
only in failure cases.

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