usbdevfs: Correct amount of data copied to user in processcompl_compat
authorHans de Goede <hdegoede@redhat.com>
Wed, 4 Jul 2012 07:18:01 +0000 (09:18 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 Aug 2012 13:37:45 +0000 (14:37 +0100)
commit6d0511498af83b9d09be2f52a69e3f9aca5db81e
treeee489ab124968b563e9919d02cf839ff0179e27e
parent87b98a1d1bd63f002763b5cb153928d260850234
usbdevfs: Correct amount of data copied to user in processcompl_compat

commit 2102e06a5f2e414694921f23591f072a5ba7db9f upstream.

iso data buffers may have holes in them if some packets were short, so for
iso urbs we should always copy the entire buffer, just like the regular
processcompl does.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/core/devio.c