ath9k: Fix write callback of 'debug' which configures debug mask
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Tue, 2 Jun 2009 13:58:55 +0000 (19:28 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:06:15 +0000 (14:06 -0400)
commit581f725ccd7e697074aa057fa86bf99b54052c95
tree38da545a4f3b0af558414a875018579e3dc98832
parent76963bb602ba91927130a0140d5757a5969e08ac
ath9k: Fix write callback of 'debug' which configures debug mask

Handle error condition on copy_from_user() properly and
make sure a NUL terminated char[] is sent to strict_strtoul()
for proper conversion.

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/debug.c