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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:31:29 +0000 (08:31 -0700)
commit2af3ad34568307d037dc7ab8f923b51e068b33c4
tree37db7c658978c5a4b79b1187563512470ce5aec4
parent761f186a0f94f7bd1c9c844f96cf0b8bbb6e2abb
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>
drivers/usb/core/devio.c