sim/usbdev: fix unpaired critical_section()

This commit is contained in:
chao an 2023-04-26 20:07:52 +08:00 committed by Xiang Xiao
parent 2eb9abc3d8
commit 8687fe1b9f

View File

@ -692,6 +692,7 @@ static int sim_ep_submit(struct usbdev_ep_s *ep, struct usbdev_req_s *req)
if (privep->epstate == SIM_EPSTATE_STALLED)
{
sim_reqabort(privep, privreq, -EBUSY);
leave_critical_section(flags);
return -EPERM;
}