mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-07 05:30:14 +00:00
Try again - fix bug #48300: Private mempools allocate foreign memory
This commit is contained in:
parent
efd3fb8f4e
commit
2c1bd363e6
@ -91,7 +91,7 @@ extern const struct memp_desc* const memp_pools[MEMP_MAX];
|
||||
#else /* MEMP_MEM_MALLOC */
|
||||
|
||||
#define LWIP_MEMPOOL_DECLARE(name,num,size,desc) u8_t memp_memory_ ## name ## _base \
|
||||
[LWIP_MEM_ALIGN_SIZE(((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size))))]; \
|
||||
[((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size))) + (MEM_ALIGNMENT-1)]; \
|
||||
\
|
||||
static struct memp *memp_tab_ ## name; \
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user