From: Alan Stern Date: Fri, 19 Oct 2007 13:51:58 +0000 (-0400) Subject: USB: fix interface sysfs file-creation bug X-Git-Tag: v2.6.24-rc2~136^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=439a903a9663c0caa8094f3907ca60069d6c36e7;p=pandora-kernel.git USB: fix interface sysfs file-creation bug This patch (as1005) fixes a rather subtle problem. When usb_set_configuration() registers the interfaces and their files in sysfs, it doesn't expect those files to exist already. But when an interface is registered, its driver may call usb_set_interface() and thereby cause the sysfs files to be created. The result is an error when usb_set_configuration() goes on to create those same files again. The (not-so-great) solution is to have usb_set_configuration() remove any existing files before creating them. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed