ath10k: sanitize tx ring index access properly
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 14 Jul 2014 13:25:25 +0000 (16:25 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 15 Jul 2014 08:19:45 +0000 (11:19 +0300)
commit993619443774f7ef4df3b98655df4c3bf298548c
treea0973b4fb0512fd7d606c64449f691033d9319df
parent2374b18684dfed2a0588efe4df716d16554da467
ath10k: sanitize tx ring index access properly

The tx ring index was immediately trimmed with a
bitmask. This discarded the 0xFFFFFFFF error case
(which theoretically can happen when a device is
abruptly disconnected) and led to using an invalid
tx ring index. This could lead to memory
corruption.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/ce.c