]> git.baikalelectronics.ru Git - kernel.git/commit
USB: fix failure path in usb_add_hcd()
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 9 Jun 2010 21:34:05 +0000 (17:34 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:33 +0000 (14:35 -0700)
commit57dcc12f9c300e9cd42cdb75a3b0465f797fc69c
tree58eef1baba1052090daa8c457936c1a1ff66b470
parentca12e24608e1d4ae45cd0f0e90d958e2112cfe84
USB: fix failure path in usb_add_hcd()

This patch (as1389) fixes some errors in the failure pathway of
usb_add_hcd().  The actions it takes ought to be exactly the same as
those taken by usb_remove_hcd(), but they aren't.

In one case (removal of the usb_bus_attr_group), the two routines are
brought into agreement by changing usb_remove_hcd().  All the other
discrepancies are fixed by changing usb_add_hcd().

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