Linux: report correct value for urb->actual_length
authorAlan Stern <stern@rowland.harvard.edu>
Sun, 17 Oct 2010 02:17:32 +0000 (04:17 +0200)
committerPeter Stuge <peter@stuge.se>
Fri, 24 Dec 2010 08:52:39 +0000 (09:52 +0100)
commit07df377a5df25e9c1811b554dc00eb8c40e5b995
tree527b98a60871a470c05db7c1f7361d6f9af5a2c8
parentb26db49208c7a6ef0a99645142af21ce80c57c22
Linux: report correct value for urb->actual_length

Transferred bytes are returned correctly by the kernel for every URB,
even when an error occurs.  Hence they should always be included in
the transfer statistics.  The same is true for isochronous packet
length and status.

[stuge: set itransfer->transferred so data is stored at correct offset]
libusb/os/linux_usbfs.c