USB: fix usbfs regression
commit3863f0615c1c6417a4db65b8bfa32aa49cc0c35e
authorAlan Stern <stern@rowland.harvard.edu>
Sat, 6 Mar 2010 20:04:03 +0000 (6 15:04 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:58:31 +0000 (1 15:58 -0700)
tree3e5504c2ab6120f6f77d0dce1345884008f1a0bd
parentd640f45411308c70e205d04938dfda94152738fb
USB: fix usbfs regression

commit 7152b592593b9d48b33f8997b1dfd6df9143f7ec upstream.

This patch (as1352) fixes a bug in the way isochronous input data is
returned to userspace for usbfs transfers.  The entire buffer must be
copied, not just the first actual_length bytes, because the individual
packets will be discontiguous if any of them are short.

Reported-by: Markus Rechberger <mrechberger@gmail.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c