ath9k: Fix buffer overflow error
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Tue, 27 Nov 2012 08:21:32 +0000 (13:51 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Nov 2012 18:38:14 +0000 (13:38 -0500)
commitd6144d85f830848ab31eb5d073d9bb4742b64e03
tree9bc81b43a00ce23655092ae79f8aa4d0f4437d0f
parent0362063b7be97f6f8e2c644b970f5726489aacdf
ath9k: Fix buffer overflow error

The commit "ath9k: stomp audio profiles on weak signal
strength" failed to take care of new stomp type while
programming concurrent tx priority. That leads to array
index out of bounds access.

drivers/net/wireless/ath/ath9k/btcoex.c:414
        ath9k_hw_btcoex_set_concur_txprio()
               error: buffer overflow 'stomp_txprio' 4 <= 4

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/mci.c