mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
usb: dwc3: ep0: prevent starting transfers twice on ep0
In case we try to start an invalid test mode, we will call dwc3_ep0_stall_and_restart() but we will also call dwc3_ep0_out_start() which will start a second transfer on ep0. Let's prevent any problems by returning early in the error case. Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
9be2395186
commit
5c81ababec
1 changed files with 1 additions and 0 deletions
|
@ -744,6 +744,7 @@ static void dwc3_ep0_complete_status(struct dwc3 *dwc,
|
|||
dev_dbg(dwc->dev, "Invalid Test #%d\n",
|
||||
dwc->test_mode_nr);
|
||||
dwc3_ep0_stall_and_restart(dwc);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue