sim/usbdev: fix unpaired critical_section()
This commit is contained in:
parent
2eb9abc3d8
commit
8687fe1b9f
@ -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)
|
if (privep->epstate == SIM_EPSTATE_STALLED)
|
||||||
{
|
{
|
||||||
sim_reqabort(privep, privreq, -EBUSY);
|
sim_reqabort(privep, privreq, -EBUSY);
|
||||||
|
leave_critical_section(flags);
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user