Re: usb devicefs flaw

From: Greg KH (
Date: Sun Aug 04 2002 - 14:22:15 EST

On Sun, Aug 04, 2002 at 08:58:23PM +0200, wrote:
> In drivers/usb/core/usb.c the routine usb_alloc_dev() will
> set the devpath for the root hub to "/".
> Then usb_find_drivers() constructs a filename used by driverfs
> using
> sprintf (&interface->dev.bus_id[0], "%s-%s:%d",
> dev->bus->bus_name, dev->devpath,
> interface->altsetting->bInterfaceNumber);
> This leads to filenames like "00:07.2-/:0" with embedded '/'.

Fix is already in Linus's tree, thanks to David Brownell:

Original patch sent to linux-usb-devel for this is at:

greg k-h
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:25 EST