mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-18 19:40:46 +09:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user