From: Alan Stern Date: Fri, 29 Jul 2005 19:17:16 +0000 (-0700) Subject: [PATCH] USB: Usbcore: Don't try to delete unregistered interfaces X-Git-Tag: v2.6.13-rc5~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86d30741e480f40676c2173e1153368a4846da48;p=pandora-kernel.git [PATCH] USB: Usbcore: Don't try to delete unregistered interfaces This patch handles a rarely-encountered failure mode in usbcore. It's legal for device_add to fail (although now it happens even more rarely than before since failure to bind a driver is no longer fatal). So when we destroy the interfaces in a configuration, we shouldn't try to delete ones which weren't successfully registered. Also, failure to register an interface shouldn't be fatal either -- I think; you may disagree about this part of the patch. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed