ath6kl: Array index out of bounds check
authorPandiyarajan Pitchaimuthu <c_ppitch@qca.qualcomm.com>
Fri, 21 Sep 2012 14:41:46 +0000 (20:11 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 24 Oct 2012 08:49:55 +0000 (11:49 +0300)
commit86aa7c1efc63e0969dee575ac9e021dbcbaa95c3
treebcf73adfa16c0ab75ec3b62d9a61ef17baaef469
parent698bf867d0d3b5669c4e85b29d2a44043a2c5c99
ath6kl: Array index out of bounds check

The variable assigned_ep can be assigned value of -1 and is never
checked if it equals -1. So the endpoint array can have -1  as the index
value and can be out of bounds.

The value of assigned_ep is checked for -1 and is ensured that the
endpoint array doesn't go out of bounds.

Signed-off-by: Pandiyarajan Pitchaimuthu <c_ppitch@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/htc_mbox.c