We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7fd41c commit b3ce3ceCopy full SHA for b3ce3ce
drivers/usb/gadget/function/f_fs.c
@@ -3666,6 +3666,7 @@ static void ffs_closed(struct ffs_data *ffs)
3666
{
3667
struct ffs_dev *ffs_obj;
3668
struct f_fs_opts *opts;
3669
+ struct config_item *ci;
3670
3671
ENTER();
3672
ffs_dev_lock();
@@ -3689,8 +3690,11 @@ static void ffs_closed(struct ffs_data *ffs)
3689
3690
|| !atomic_read(&opts->func_inst.group.cg_item.ci_kref.refcount))
3691
goto done;
3692
- unregister_gadget_item(ffs_obj->opts->
3693
- func_inst.group.cg_item.ci_parent->ci_parent);
+ ci = opts->func_inst.group.cg_item.ci_parent->ci_parent;
3694
+ ffs_dev_unlock();
3695
+
3696
+ unregister_gadget_item(ci);
3697
+ return;
3698
done:
3699
ffs_dev_unlock();
3700
}
0 commit comments