linux/drivers/usb/core
Alan Stern 439a903a96 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 <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-25 12:18:44 -07:00
..
buffer.c
config.c usb: usb_get_configuration() obeys authorization 2007-10-12 14:55:06 -07:00
devices.c USB: add IAD support to usbfs and sysfs 2007-07-12 16:34:40 -07:00
devio.c Use helpers to obtain task pid in printks 2007-10-19 11:53:43 -07:00
driver.c Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 2007-10-12 15:49:37 -07:00
endpoint.c Add missing newlines to some uses of dev_<level> messages 2007-10-18 14:37:28 -07:00
file.c
generic.c USB: move decision to ignore FREEZE events 2007-10-12 14:55:26 -07:00
hcd-pci.c
hcd.c USB: Export URB statistics for powertop 2007-10-12 14:55:30 -07:00
hcd.h USB: mutual exclusion for EHCI init and port resets 2007-10-12 14:55:34 -07:00
hub.c freezer: introduce freezer-friendly waiting macros 2007-10-18 14:37:19 -07:00
hub.h
inode.c
Kconfig
Makefile
message.c USB: fix interface sysfs file-creation bug 2007-10-25 12:18:44 -07:00
notify.c
otg_whitelist.h
quirks.c USB: remove USB_QUIRK_NO_AUTOSUSPEND 2007-10-12 14:55:28 -07:00
sysfs.c USB: Export URB statistics for powertop 2007-10-12 14:55:30 -07:00
urb.c USB: add URB_FREE_BUFFER to permissible flags 2007-10-25 12:18:43 -07:00
usb.c security/ cleanups 2007-10-17 08:43:07 -07:00
usb.h USB: rename choose_configuration 2007-10-12 14:55:08 -07:00