USB: fix usb gadget ffs string id bug.

This commit is contained in:
wlf
2014-06-11 10:45:44 +08:00
parent 384134cb60
commit 4fd32aee8a

View File

@@ -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);