]> git.ipfire.org Git - people/ms/linux.git/commit
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>
Mon, 15 Mar 2010 16:06:57 +0000 (09:06 -0700)
commite6a9c52471f3be745d05a78d3bed3b09d410f9c6
tree10f58009cdedf4b420dd137bf5e8ce517661c204
parentbe3da032d675cee5156260354182fee760834898
USB: f_mass_storage: fix crash on bind() error

commit 8e7e61dfbf1ec6418bf89505980b158a8d00d877 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_mass_storage.c