]> err.no Git - linux-2.6/commit
USB: Fix a bug in usb_start_wait_urb
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 24 Jul 2007 22:23:23 +0000 (18:23 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 30 Jul 2007 20:27:45 +0000 (13:27 -0700)
commit67f5dde3d4961032aeeecaf0d1c7a9232bef3f44
tree11465eeff8ebb8b20609354b251e5142fe134198
parenta12b8db02035673153bbf19bb3641a08bed9e4b8
USB: Fix a bug in usb_start_wait_urb

This patch (as941) fixes a bug recently added to the USB synchronous
API.  The status of a completed URB must be preserved separately
across a completion callback.  Also, the actual_length value isn't
available until after the URB has fully completed.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c