diff options
author | 2007-10-19 09:51:58 -0400 | |
---|---|---|
committer | 2007-10-25 12:18:44 -0700 | |
commit | 439a903a9663c0caa8094f3907ca60069d6c36e7 (patch) | |
tree | ed6da5090918e824a2376f518a605e78ab0e5758 /drivers/usb/misc/idmouse.c | |
parent | USB: fix ssb_ohci_probe() build bug (diff) | |
download | wireguard-linux-439a903a9663c0caa8094f3907ca60069d6c36e7.tar.xz wireguard-linux-439a903a9663c0caa8094f3907ca60069d6c36e7.zip |
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>
Diffstat (limited to 'drivers/usb/misc/idmouse.c')
0 files changed, 0 insertions, 0 deletions