From 8c6a6b21809e2c17fea5653e9e7bb87969507766 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Fri, 26 Feb 2010 09:30:01 -0500 Subject: [PATCH] USB: gadget: composite: Don't call set_alt() on functions that are hidden. Signed-off-by: Mike Lockwood --- drivers/usb/gadget/composite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 46a650822127..cf7a5cf8503e 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -484,6 +484,8 @@ static int set_config(struct usb_composite_dev *cdev, if (!f) break; + if (f->hidden) + continue; /* * Record which endpoints are used by the function. This is used -- 2.34.1