projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b626dc
)
USB: f_mass_storage: fix crash on bind() error
author
Peter Korsgaard
<jacmet@sunsite.dk>
Thu, 4 Feb 2010 16:15:25 +0000
(17:15 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 2 Mar 2010 22:54:55 +0000
(14:54 -0800)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/f_mass_storage.c
b/drivers/usb/gadget/f_mass_storage.c
index 0553d9a5536b25d2c37750af1c4b344b3a021adc..e6abde39857d9b9423f37aec367eecf279b85134 100644
(file)
--- a/
drivers/usb/gadget/f_mass_storage.c
+++ b/
drivers/usb/gadget/f_mass_storage.c
@@
-2865,7
+2865,6
@@
error_release:
/* Call fsg_common_release() directly, ref might be not
* initialised */
fsg_common_release(&common->ref);
- complete(&common->thread_notifier);
return ERR_PTR(rc);
}