USB: gadget: composite: Don't call set_alt() on functions that are hidden.
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
parent
3b077241e0
commit
6fd76fd99e
1 changed files with 2 additions and 0 deletions
|
|
@ -477,6 +477,8 @@ static int set_config(struct usb_composite_dev *cdev,
|
|||
|
||||
if (!f)
|
||||
break;
|
||||
if (f->hidden)
|
||||
continue;
|
||||
|
||||
result = f->set_alt(f, tmp, 0);
|
||||
if (result < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue