kernel/drivers/usb/gadget/function/f_fs.c
.. .. @@ -3623,6 +3623,7 @@ 3623 3623 /* Drain any pending AIO completions */ 3624 3624 drain_workqueue(ffs->io_completion_wq); 3625 3625 3626 + ffs_event_add(ffs, FUNCTIONFS_UNBIND);3626 3627 if (!--opts->refcnt) 3627 3628 functionfs_unbind(ffs); 3628 3629 .. .. @@ -3647,7 +3648,6 @@ 3647 3648 func->function.ssp_descriptors = NULL; 3648 3649 func->interfaces_nums = NULL; 3649 3650 3650 - ffs_event_add(ffs, FUNCTIONFS_UNBIND);3651 3651 } 3652 3652 3653 3653 static struct usb_function *ffs_alloc(struct usb_function_instance *fi)