commit | e79cc615a9bb44da72c499ccfa2c9c4bbea3aa84 | [log] [tgz] |
---|---|---|
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | Mon Oct 22 22:15:00 2012 +0200 |
committer | Felipe Balbi <balbi@ti.com> | Wed Oct 31 15:04:24 2012 +0200 |
tree | 0b860852814460a151fe7323ae1d31726adbe18f | |
parent | 391aa852a372308c216d8638e57fe8fe560558f2 [diff] |
usb: gadget: network: fix bind() error path I think this is wrong since 72c973dd ("usb: gadget: add usb_endpoint_descriptor to struct usb_ep"). If we fail to allocate an ep or bail out early we shouldn't check for the descriptor which is assigned at ep_enable() time. Cc: Tatyana Brokhman <tlinder@codeaurora.org> Cc: stable <stable@vger.kernel.org> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>