summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-09-30 11:58:39 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-04 21:25:51 +0400
commit9876cbe2e2ec685ee620056ba1f2cc2f13a2e01a (patch)
tree7d59fa6ef505c080a6eb20e1ca7eb9232d710ff4 /drivers/usb/dwc3
parent25355be64ef319894c4de2034af1bdeb79dc0bd4 (diff)
downloadlinux-9876cbe2e2ec685ee620056ba1f2cc2f13a2e01a.tar.xz
usb: dwc3: ep0: remove second giveback in error case
We already give requests back in dwc3_ep0_stall_and_restart() so doing it again here will most likely corrupt the list. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/ep0.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c
index 95ce96a14ff6..e48dce51bcba 100644
--- a/drivers/usb/dwc3/ep0.c
+++ b/drivers/usb/dwc3/ep0.c
@@ -587,7 +587,6 @@ static void dwc3_ep0_complete_data(struct dwc3 *dwc,
/* for some reason we did not get everything out */
dwc3_ep0_stall_and_restart(dwc);
- dwc3_gadget_giveback(dep, r, -ECONNRESET);
} else {
/*
* handle the case where we have to send a zero packet. This