From 7d30a67d66836e63e7e7224d84e7695907fd9315 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 2 Feb 2022 18:06:27 +0800 Subject: [PATCH] board/xtensa/esp32: fix leaving from critical section Signed-off-by: chao.an --- boards/xtensa/esp32/common/src/esp32_mcp2515.c | 1 + 1 file changed, 1 insertion(+) diff --git a/boards/xtensa/esp32/common/src/esp32_mcp2515.c b/boards/xtensa/esp32/common/src/esp32_mcp2515.c index 5f5d06c029..b8bba2ef06 100644 --- a/boards/xtensa/esp32/common/src/esp32_mcp2515.c +++ b/boards/xtensa/esp32/common/src/esp32_mcp2515.c @@ -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; }