]> git.baikalelectronics.ru Git - kernel.git/commit
USB: adutux: fix misuse of return value of copy_to_user()
authorKulikov Vasiliy <segooon@gmail.com>
Sat, 31 Jul 2010 17:40:07 +0000 (21:40 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Aug 2010 03:50:17 +0000 (20:50 -0700)
commitfedd94194a06a4f2ba8f0573543158a03dcc710d
tree91e448411ba4a1b8478814253f20ecb8d56a2737
parentce9cc0b417743f03e93fe129fcd166b1febd8867
USB: adutux: fix misuse of return value of copy_to_user()

copy_to_user() returns number of not copied bytes, not error code.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/adutux.c