usb: gadget: dummy_hcd: don't assign ->desc on error case
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 25 Jan 2012 10:51:19 +0000 (11:51 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 9 Feb 2012 07:53:53 +0000 (09:53 +0200)
commit3cf0ad02e42a91e85ffe9bd67422dd266531d3ec
treeb31c5635d9a6b07c1e57a5d92a6ab536e2f7bd4a
parentd11519adc214c243ec606f186316f2667b677694
usb: gadget: dummy_hcd: don't assign ->desc on error case

If the stream check fails then we leave ep->desc assigend but we return
with an error code. The caller assumes the endpoint is not enabled
(which is the case) but it can not enable it again due to this
assigment.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/dummy_hcd.c