board/xtensa/esp32: 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:27 +08:00 committed by Xiang Xiao
parent 8e004839b6
commit 7d30a67d66

View File

@ -161,6 +161,7 @@ static int mcp2515_attach(FAR struct mcp2515_config_s *state,
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: gpint_attach() failed: %d\n", ret);
leave_critical_section(flags);
return ret;
}