Skip to content

Commit

Permalink
Revert "usb: interface authorization: Control interface probing and c…
Browse files Browse the repository at this point in the history
…laiming"

This reverts commit de7718b as the
signed-off-by address is invalid.

Cc: Stefan Koch <stefan.koch10@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Aug 18, 2015
1 parent 5651440 commit 8c2ea97
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/usb/core/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,6 @@ static int usb_probe_interface(struct device *dev)
if (udev->authorized == 0) {
dev_err(&intf->dev, "Device is not authorized for usage\n");
return error;
} else if (intf->authorized == 0) {
dev_err(&intf->dev, "Interface %d is not authorized for usage\n",
intf->altsetting->desc.bInterfaceNumber);
return error;
}

id = usb_match_dynamic_id(intf, driver);
Expand Down Expand Up @@ -512,10 +508,6 @@ int usb_driver_claim_interface(struct usb_driver *driver,
if (dev->driver)
return -EBUSY;

/* reject claim if not iterface is not authorized */
if (!iface->authorized)
return -ENODEV;

udev = interface_to_usbdev(iface);

dev->driver = &driver->drvwrap.driver;
Expand Down

0 comments on commit 8c2ea97

Please sign in to comment.