board/xtensa/esp32: fix leaving from critical section
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
8e004839b6
commit
7d30a67d66
@ -161,6 +161,7 @@ static int mcp2515_attach(FAR struct mcp2515_config_s *state,
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR, "ERROR: gpint_attach() failed: %d\n", ret);
|
syslog(LOG_ERR, "ERROR: gpint_attach() failed: %d\n", ret);
|
||||||
|
leave_critical_section(flags);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user