mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-18 06:06:57 +08:00
Fix bug #47512: MPU_COMPATIBLE may fail on empty pool
This commit is contained in:
@@ -62,10 +62,6 @@ struct netif;
|
||||
return errorval; \
|
||||
} \
|
||||
} while(0)
|
||||
#define API_VAR_ALLOC_DONTFAIL(type, pool, name) do { \
|
||||
name = (type *)memp_malloc(pool); \
|
||||
LWIP_ASSERT("pool empty", name != NULL); \
|
||||
} while(0)
|
||||
#define API_VAR_FREE(pool, name) memp_free(pool, name)
|
||||
#define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name)
|
||||
#define API_EXPR_REF(expr) &(expr)
|
||||
@@ -82,7 +78,6 @@ struct netif;
|
||||
#define API_VAR_DECLARE(type, name) type name
|
||||
#define API_VAR_ALLOC(type, pool, name, errorval)
|
||||
#define API_VAR_ALLOC_POOL(type, pool, name, errorval)
|
||||
#define API_VAR_ALLOC_DONTFAIL(type, pool, name)
|
||||
#define API_VAR_FREE(pool, name)
|
||||
#define API_VAR_FREE_POOL(pool, name)
|
||||
#define API_EXPR_REF(expr) expr
|
||||
|
||||
Reference in New Issue
Block a user