Skip to content

Commit 8687fe1

Browse files
anchaoxiaoxiang781216
authored andcommitted
sim/usbdev: fix unpaired critical_section()
1 parent 2eb9abc commit 8687fe1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/sim/src/sim/sim_usbdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ static int sim_ep_submit(struct usbdev_ep_s *ep, struct usbdev_req_s *req)
692692
if (privep->epstate == SIM_EPSTATE_STALLED)
693693
{
694694
sim_reqabort(privep, privreq, -EBUSY);
695+
leave_critical_section(flags);
695696
return -EPERM;
696697
}
697698

0 commit comments

Comments
 (0)