]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: remove some bogus error handling code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 5 Oct 2011 05:48:20 +0000 (08:48 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Oct 2011 20:41:10 +0000 (16:41 -0400)
commit2483b6763e51a2df08edfcbd3d26b866dc2c0873
tree87ba96e3365c600cb85f76cbc5935c33bdfa1b82
parent748b86fe1d6a20b4d1ed5e7dd168718a57058f78
ath9k: remove some bogus error handling code

If "axq_qnum >= ARRAY_SIZE(sc->tx.txq)", then the call to
ath9k_hw_releasetxqueue() would read beyond the end of the ah->txq[]
array and possibly corrupt memory.  Fortunately,
ath9k_hw_setuptxqueue() doesn't return high values of "axq_qnum" and
this code can be removed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c