diff options
author | Mike Lockwood <lockwood@android.com> | 2010-02-26 09:30:01 -0500 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:09:05 -0700 |
commit | 8c6a6b21809e2c17fea5653e9e7bb87969507766 (patch) | |
tree | d6f2ab90622fdedc135b57545acc5acfb8abc829 /drivers/usb/gadget | |
parent | 352208629f9af9e79c48214ef355ad7d0056da12 (diff) | |
download | kernel_samsung_espresso10-8c6a6b21809e2c17fea5653e9e7bb87969507766.zip kernel_samsung_espresso10-8c6a6b21809e2c17fea5653e9e7bb87969507766.tar.gz kernel_samsung_espresso10-8c6a6b21809e2c17fea5653e9e7bb87969507766.tar.bz2 |
USB: gadget: composite: Don't call set_alt() on functions that are hidden.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/composite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 46a6508..cf7a5cf 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 |