mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
31253679d9
commit
a8eed53bc2
@ -1 +1 @@
|
|||||||
Subproject commit f79221431fa9042b3572d271d687de66da7560c4
|
Subproject commit a1bd9e441b10a94f97ec8c20daf7fa90983e7cc2
|
@ -63,7 +63,7 @@ void sys_delay_ms(uint32_t ms);
|
|||||||
*/
|
*/
|
||||||
#define sys_mbox_set_invalid( x ) *x = NULL
|
#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 )
|
#define sys_sem_set_invalid( x ) ( ( *x ) = NULL )
|
||||||
|
|
||||||
void sys_delay_ms(uint32_t ms);
|
void sys_delay_ms(uint32_t ms);
|
||||||
|
Loading…
Reference in New Issue
Block a user