Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 4 Aug 2002 14:54:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 4 Aug 2002 14:54:58 -0400 Received: from hera.cwi.nl ([192.16.191.8]:65509 "EHLO hera.cwi.nl") by vger.kernel.org with ESMTP id ; Sun, 4 Aug 2002 14:54:57 -0400 From: Andries.Brouwer@cwi.nl Date: Sun, 4 Aug 2002 20:58:23 +0200 (MEST) Message-Id: To: greg@kroah.com Subject: usb devicefs flaw Cc: linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 676 Lines: 17 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 '/'. Andries - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/