* [PATCH] ath6kl: Check for valid endpoint ID
@ 2012-09-21 14:43 Pandiyarajan Pitchaimuthu
2012-10-12 12:29 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Pandiyarajan Pitchaimuthu @ 2012-09-21 14:43 UTC (permalink / raw)
To: linux-wireless; +Cc: kvalo, ath6kl-devel
Endpoint ID is checked to make sure it is valid.
Signed-off-by: Pandiyarajan Pitchaimuthu <c_ppitch@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath6kl/txrx.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index e867193..7ef159d 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -699,6 +699,10 @@ void ath6kl_tx_complete(struct htc_target *target,
list);
list_del(&packet->list);
+ if (WARN_ON_ONCE(packet->endpoint == ENDPOINT_UNUSED ||
+ packet->endpoint >= ENDPOINT_MAX))
+ continue;
+
ath6kl_cookie = (struct ath6kl_cookie *)packet->pkt_cntxt;
if (WARN_ON_ONCE(!ath6kl_cookie))
continue;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath6kl: Check for valid endpoint ID
2012-09-21 14:43 [PATCH] ath6kl: Check for valid endpoint ID Pandiyarajan Pitchaimuthu
@ 2012-10-12 12:29 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2012-10-12 12:29 UTC (permalink / raw)
To: Pandiyarajan Pitchaimuthu; +Cc: linux-wireless, ath6kl-devel
On 09/21/2012 05:43 PM, Pandiyarajan Pitchaimuthu wrote:
> Endpoint ID is checked to make sure it is valid.
>
> Signed-off-by: Pandiyarajan Pitchaimuthu <c_ppitch@qca.qualcomm.com>
Thanks, applied. I just changed the patch title to "ath6kl: Check for
valid endpoint ID in ath6kl_tx_complete()" to make it easier to identify.
Kalle
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-12 12:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 14:43 [PATCH] ath6kl: Check for valid endpoint ID Pandiyarajan Pitchaimuthu
2012-10-12 12:29 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).