]> git.baikalelectronics.ru Git - kernel.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>
Fri, 19 Mar 2010 14:24:02 +0000 (07:24 -0700)
commitb4c9e1394f76ccfac935d05f4abecefb63b2883a
tree9c3ce2e80dd257794674a89195fd7cc4478d3742
parentaaf55587e13b383ac3f59cc5ea15f345e76d3d55
USB: fix usbfs regression

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>
CC: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c