]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: gadget: don't wait for completion twice
authorFelipe Balbi <felipe.balbi@nokia.com>
Mon, 8 Dec 2008 11:50:27 +0000 (13:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 18:00:03 +0000 (10:00 -0800)
commit889394b1eb95f040525d06dd4f2f1222b94023e2
tree40aea59fc30c426eb0f3e20fc3f3f2208c438876
parent619b572ae205cea26b147c2cec5ebf19974f4bb0
USB: gadget: don't wait for completion twice

In some obscure scenarios e.g. passing a 0-byte backing file
storage, wait_for_completion() would wait forever in fsg_cleanup().

Prevent it by completing the thread in fsg_bind() error path.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/file_storage.c