Merge branch 'lwip/thread_sem_oomem_crash' into 'master'

fix(lwip): Fix crash to fail-safe error if cannot get semaphore

Closes IDF-8888

See merge request espressif/esp-idf!29766
This commit is contained in:
David Čermák
2024-05-09 23:19:48 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ void sys_delay_ms(uint32_t ms);
*/
#define sys_mbox_set_invalid( x ) *x = NULL
#define sys_sem_valid( x ) ( ( ( *x ) == NULL) ? pdFALSE : pdTRUE )
#define sys_sem_valid( x ) ( ( (x) == NULL ) ? pdFALSE : ( ( *x ) == NULL ? pdFALSE : pdTRUE ) )
#define sys_sem_set_invalid( x ) ( ( *x ) = NULL )
void sys_delay_ms(uint32_t ms);