These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / usb / core / usb.c
index 8d5b2f4..f8bbd0b 100644 (file)
@@ -510,7 +510,7 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent,
        if (root_hub)   /* Root hub always ok [and always wired] */
                dev->authorized = 1;
        else {
-               dev->authorized = usb_hcd->authorized_default;
+               dev->authorized = !!HCD_DEV_AUTHORIZED(usb_hcd);
                dev->wusb = usb_bus_is_wusb(bus) ? 1 : 0;
        }
        return dev;