mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
sim/usbdev: fix unpaired critical_section()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user