aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/usb.c
diff options
context:
space:
mode:
authorStefan Koch <[email protected]>2015-08-25 19:10:11 +0000
committerGreg Kroah-Hartman <[email protected]>2015-09-22 19:08:40 +0000
commitff8e2c560eca32043ed097099debac488a4bd99f (patch)
tree617f7ea228bb0a46e2cc4b59f9f50dd1e2c2c1fe /drivers/usb/core/usb.c
parentusb: interface authorization: Documentation part (diff)
downloadkernel-ff8e2c560eca32043ed097099debac488a4bd99f.tar.gz
kernel-ff8e2c560eca32043ed097099debac488a4bd99f.zip
usb: interface authorization: Use a flag for the default device authorization
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r--drivers/usb/core/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 8d5b2f4113cd..f8bbd0b6d9fe 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -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;