commit | caa2a1226741e023a103e091a7f6dce7c42e82ee | [log] [tgz] |
---|---|---|
author | Franck Bui-Huu <vagabon.xyz@gmail.com> | Mon May 15 19:23:53 2006 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed Jun 21 15:04:12 2006 -0700 |
tree | 95a9552242797efd04bd752ab5f07963d837805a | |
parent | c8155cc5d839838f8425dbea568fc537337176a7 [diff] |
[PATCH] Fix a deadlock in usbtest ctrl_complete functions acquires ctx->lock and tries to unlink all queued urbs in case of errors through usb_unlink_urb func. In its turn usb_unlink_urb calls, through the hcd driver, usb_hcd_giveback_urb which calls ctrl_complete again. At this time, ctx->lock is already taken by the same function. Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>