fix(lwip): Fix null dereference if we cannot allocate semaphore

* Update submodule: git log --oneline f7922143..a1bd9e44
Detailed description of the changes:
  - api_msg: Fix crash to fail-safe error if cannot get semaphore (espressif/esp-lwip@a1bd9e44)
This commit is contained in:
David Cermak 2024-03-20 10:57:08 +01:00 committed by David Čermák
parent 31253679d9
commit a8eed53bc2
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit f79221431fa9042b3572d271d687de66da7560c4
Subproject commit a1bd9e441b10a94f97ec8c20daf7fa90983e7cc2

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);