usbhost/max3421e: fix leaving from critical section
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
7d30a67d66
commit
2ab4003e0f
|
@ -1379,6 +1379,7 @@ static int max3421e_chan_wait(FAR struct max3421e_usbhost_s *priv,
|
|||
ret = nxsem_wait_uninterruptible(&priv->waitsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
leave_critical_section(flags);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue