]> bbs.cooldavid.org Git - net-next-2.6.git/commit
USB: xhci: Fix error path when configuring endpoints.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 9 Dec 2009 23:58:58 +0000 (15:58 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:08 +0000 (14:53 -0800)
commitc01591bd6ece72e1c099cbc25ed812e1add579dc
tree6773c823e19ac6685af1cd06fa1e7bbb4ebf0a58
parentf661c6f8c67bd55e93348f160d590ff9edf08904
USB: xhci: Fix error path when configuring endpoints.

If we fail to queue an evaluate context command or a configure endpoint
command to the command ring in xhci_configure_endpoint(), we need to
remove the xhci_command structure from the device's command list before
returning.  If the command is left on the command list, it will sit there
indefinitely, blocking commands submitted after this fails.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-hcd.c