From 7ca5fa87c0d6e7173a353425b40293f79838859d Mon Sep 17 00:00:00 2001 From: Steve Jothen Date: Mon, 30 Jan 2023 10:59:53 +0100 Subject: [PATCH] Use correct recursive mutex for env and regular mutex for tz --- components/newlib/locks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/newlib/locks.c b/components/newlib/locks.c index 15f5bd80624..7d8ba336fd3 100644 --- a/components/newlib/locks.c +++ b/components/newlib/locks.c @@ -375,9 +375,9 @@ void esp_newlib_locks_init(void) extern _lock_t __sinit_lock; __sinit_lock = (_lock_t) &s_common_recursive_mutex; extern _lock_t __env_lock_object; - __env_lock_object = (_lock_t) &s_common_mutex; + __env_lock_object = (_lock_t) &s_common_recursive_mutex; extern _lock_t __tz_lock_object; - __tz_lock_object = (_lock_t) &s_common_recursive_mutex; + __tz_lock_object = (_lock_t) &s_common_mutex; #elif defined(CONFIG_IDF_TARGET_ESP32S2) /* Newlib 3.0.0 is used in ROM, the following lock symbols are defined: */ extern _lock_t __sinit_recursive_mutex;