If called and the device is not authorized to be used, it won't configure the interface and print a message saying so.
Signed-off-by: Inaky Perez-Gonzalez <[EMAIL PROTECTED]> --- drivers/usb/core/driver.c | 5 +++++ 1 file changed, 5 insertions(+) Index: linux.hg/drivers/usb/core/driver.c =================================================================== --- linux.hg.orig/drivers/usb/core/driver.c 2007-07-18 10:05:25.000000000 -0700 +++ linux.hg/drivers/usb/core/driver.c 2007-07-18 10:05:48.000000000 -0700 @@ -199,6 +199,11 @@ intf = to_usb_interface(dev); udev = interface_to_usbdev(intf); + + if (udev->authorized == 0) { + dev_err(&intf->dev, "Device is not authorized for usage\n"); + return -ENODEV; + } id = usb_match_id(intf, driver->id_table); if (!id) -- Inaky ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel