mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
usbhost/max3421e: fix leaving from critical section
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -1379,6 +1379,7 @@ static int max3421e_chan_wait(FAR struct max3421e_usbhost_s *priv,
|
|||||||
ret = nxsem_wait_uninterruptible(&priv->waitsem);
|
ret = nxsem_wait_uninterruptible(&priv->waitsem);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
|
leave_critical_section(flags);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user