ath5k: fix EEPROM dumping via debugfs
authorSergey Ryazanov <ryazanov.s.a@gmail.com>
Tue, 2 Aug 2016 11:19:28 +0000 (14:19 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 10:02:24 +0000 (13:02 +0300)
commitaf8a9a67c3466f70ab28a112d18eb5d327d40ca2
tree0c651f3e6d4d3bb7ba932c10fa356eaca62a0772
parentbd6b0242652a8a284eed2adec5ac1fc043b8f2ef
ath5k: fix EEPROM dumping via debugfs

EEPROM size calculated in 16-bit words, so we should take into account
this fact during buffer allocation.

CC: Jiri Slaby <jirislaby@gmail.com>
CC: Nick Kossifidis <mickflemm@gmail.com>
CC: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath5k/debug.c