USB: f_mass_storage: fix crash on bind() error
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 4 Feb 2010 16:15:25 +0000 (17:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:55 +0000 (14:54 -0800)
commit8e7e61dfbf1ec6418bf89505980b158a8d00d877
tree6b7411089acf313bda8076d1a58a48baf68f38a8
parent2b626dc134d38d0001b98acf8c7293b6bc5ee86d
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>
drivers/usb/gadget/f_mass_storage.c