usb: dwc3: ep0: remove second giveback in error case
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 30 Sep 2011 07:58:39 +0000 (10:58 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Oct 2011 17:25:51 +0000 (10:25 -0700)
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>
drivers/usb/dwc3/ep0.c

index 95ce96a..e48dce5 100644 (file)
@@ -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