From 2c1bd363e6cb9c5f393725a3404354ed7c17d244 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 24 Jun 2016 12:33:02 +0200 Subject: [PATCH] Try again - fix bug #48300: Private mempools allocate foreign memory --- src/include/lwip/memp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/lwip/memp.h b/src/include/lwip/memp.h index bb45f6c4..d6c29657 100644 --- a/src/include/lwip/memp.h +++ b/src/include/lwip/memp.h @@ -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; \ \