]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
USB: iowarrior: fix misuse of return value of copy_to_user()
authorKulikov Vasiliy <segooon@gmail.com>
Sat, 31 Jul 2010 17:39:46 +0000 (21:39 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Aug 2010 03:50:16 +0000 (20:50 -0700)
commit6d4d4554863b7897f2bc9cd9085f54c819152825
treebdaa33a5a8978d2ab1ef8daedd932598118d8ed8
parent14184f9b8047026f1812f49df074e89dad3a09bc
USB: iowarrior: 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/iowarrior.c