]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: fix buffer overrun in rate debug code
authorBob Copeland <me@bobcopeland.com>
Tue, 28 Apr 2009 02:12:43 +0000 (22:12 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 28 Apr 2009 19:59:48 +0000 (15:59 -0400)
commit6ead829e0918cfbd5e01189ca616f34f853709c1
tree45848311dcd1dd1a116edc48d18586825d7c047a
parent02f784c47aae1d7f45e50e0c5f2ffa2324de098d
ath5k: fix buffer overrun in rate debug code

char bname[5] is too small for the string "X GHz" when the null
terminator is taken into account.  Thus, turning on rate debugging
can crash unless we have lucky stack alignment.

Cc: stable@kernel.org
Reported-by: Paride Legovini <legovini@spiro.fisica.unipd.it>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/debug.c