Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sebastian Andrzej Siewior and committed by
Greg Kroah-Hartman
9876cbe2 25355be6

-1
-1
drivers/usb/dwc3/ep0.c
··· 587 587 /* for some reason we did not get everything out */ 588 588 589 589 dwc3_ep0_stall_and_restart(dwc); 590 - dwc3_gadget_giveback(dep, r, -ECONNRESET); 591 590 } else { 592 591 /* 593 592 * handle the case where we have to send a zero packet. This