From 2ab4003e0f22e5ffbe3f61be0fe4931e0b3cff78 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 2 Feb 2022 18:06:55 +0800 Subject: [PATCH] usbhost/max3421e: fix leaving from critical section Signed-off-by: chao.an --- drivers/usbhost/usbhost_max3421e.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usbhost/usbhost_max3421e.c b/drivers/usbhost/usbhost_max3421e.c index 6546bb8ada..7261eff0fe 100644 --- a/drivers/usbhost/usbhost_max3421e.c +++ b/drivers/usbhost/usbhost_max3421e.c @@ -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; } }