]> git.karo-electronics.de Git - karo-tx-linux.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>
Thu, 9 Aug 2012 15:27:35 +0000 (08:27 -0700)
commita0f7a5ac6e752612427077b2c04db1e0ae720a66
treee14ae15be98c5ad8861f729e32d005494f7eba4a
parentc6c3f3ff6c89fdd50ac44ed7787141d8a50b79de
usbdevfs: Correct amount of data copied to user in processcompl_compat

commit 2102e06a5f2e414694921f23591f072a5ba7db9f upstream.

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