]> 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 23:01:36 +0000 (16:01 -0700)
commit55fe2557940e0cd1d88aa89ef580089698a7dac1
tree38d2421b71fa68ccaed236cb6e63f37268455474
parent27f5d838191d05b6d8d6e96b3e1e9e1a75d54cad
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