]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ath9k/debug: fixup the return codes
authorDan Carpenter <error27@gmail.com>
Fri, 14 May 2010 13:25:39 +0000 (15:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 Jun 2010 20:13:08 +0000 (16:13 -0400)
commit04236066e00ab20c6745569268d67a980bd06abd
tree94b56cfde8b7340e8ca37a37951dac99e0353ab1
parent2b87f3aac04818f720956e2b70f9b04fc8e2c794
ath9k/debug: fixup the return codes

Changed -EINVAL to -EFAULT if copy_to_user() failed.
Changed 0 to -ENOMEM if allocations failed.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/debug.c