usbhost/max3421e: fix leaving from critical section

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-02-02 18:06:55 +08:00 committed by Xiang Xiao
parent 7d30a67d66
commit 2ab4003e0f
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}