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)
commit1865a9c382ede507065cf1575308b53495814c7d
tree91e448411ba4a1b8478814253f20ecb8d56a2737
parent6d4d4554863b7897f2bc9cd9085f54c819152825
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