bug #41188 Alignment error in memp_init() when MEMP_SEPARATE_POOLS==1

This commit is contained in:
Simon Goldschmidt 2014-01-10 21:26:28 +01:00
parent 91333c5d2f
commit 75f2c56558
2 changed files with 4 additions and 1 deletions

View File

@ -80,6 +80,9 @@ HISTORY
++ Bugfixes:
2014-01-10: Simon Goldschmidt
* memp.c: fixed bug #41188 Alignment error in memp_init() when MEMP_SEPARATE_POOLS==1
2014-01-10: Simon Goldschmidt
* tcp.c: fixed bug #39898 tcp_fasttmr() possible lock due to infinte queue process loop

View File

@ -369,7 +369,7 @@ memp_init(void)
for (i = 0; i < MEMP_MAX; ++i) {
memp_tab[i] = NULL;
#if MEMP_SEPARATE_POOLS
memp = (struct memp*)memp_bases[i];
memp = (struct memp*)LWIP_MEM_ALIGN(memp_bases[i]);
#endif /* MEMP_SEPARATE_POOLS */
/* create a linked list of memp elements */
for (j = 0; j < memp_num[i]; ++j) {