android_kernel_xiaomi_sm8350/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
devices.c
devio.c Use helpers to obtain task pid in printks 2007-10-19 11:53:43 -07:00
driver.c
endpoint.c Add missing newlines to some uses of dev_<level> messages 2007-10-18 14:37:28 -07:00
file.c
generic.c
hcd-pci.c
hcd.c
hcd.h
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
sysfs.c
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