]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: fix usbfs regression
authorAlan Stern <stern@rowland.harvard.edu>
Sat, 6 Mar 2010 20:04:03 +0000 (15:04 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:52:29 +0000 (15:52 -0700)
commitaaaa549b386fdd80b93b447541f42b313b103f95
treea3dfc8a690a4e558a0adca9094f807e7bca5db4e
parente3dc90e7cd7328ffae169ba41500d50aa1c893d3
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