mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 11:10:51 +07:00
USB: f_mass_storage: fix crash on bind() error
init_completion() hasn't been called yet and the thread isn't created if we end up here, so don't call complete() on thread_notifier. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Acked-by: Michal Nazarewicz <m.nazarewicz@samsung.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2b626dc134
commit
8e7e61dfbf
@ -2865,7 +2865,6 @@ static struct fsg_common *fsg_common_init(struct fsg_common *common,
|
||||
/* Call fsg_common_release() directly, ref might be not
|
||||
* initialised */
|
||||
fsg_common_release(&common->ref);
|
||||
complete(&common->thread_notifier);
|
||||
return ERR_PTR(rc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user