]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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>
Fri, 6 Jul 2012 17:53:19 +0000 (10:53 -0700)
commit2102e06a5f2e414694921f23591f072a5ba7db9f
tree604e68f38bb4cf2e5254614b084e04999e2d4a6d
parent02f824ac75d1c861aae59be5d6d739043c2066e7
usbdevfs: Correct amount of data copied to user in processcompl_compat

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