mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
USB: fix usb gadget ffs string id bug.
This commit is contained in:
@@ -347,6 +347,9 @@ static void functionfs_closed_callback(struct ffs_data *ffs)
|
||||
config->opened = false;
|
||||
config->data = NULL;
|
||||
|
||||
if (!WARN_ON(!ffs->gadget)) {
|
||||
dev->cdev->next_string_id -= ffs->strings_count;
|
||||
}
|
||||
functionfs_unbind(ffs);
|
||||
|
||||
mutex_unlock(&dev->mutex);
|
||||
|
||||
Reference in New Issue
Block a user