]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Complete failed tx packet in ath6kl_htc_tx_from_queue()
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Thu, 26 Apr 2012 14:56:14 +0000 (20:26 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 30 Apr 2012 07:56:24 +0000 (10:56 +0300)
commit0a49d33048a918ce29b08f12312f12692ff34bed
tree20b67b7fee184c8ab027e7793a218bb789a2a19b
parent09d300584953b2015c197f794c98a657f99fbbf3
ath6kl: Complete failed tx packet in ath6kl_htc_tx_from_queue()

Return status of ath6kl_htc_tx_issue() is ignored in
ath6kl_htc_tx_from_queue(), but failed tx packet is
is not cleaned up. To fix memory leak in this case, call
completion with error. Also, throw an error debug message
when tx fails in ath6kl_sdio_write_async() due to shortage
in bus request buffer.

kvalo: change the error message to WARN_ON_ONCE()

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