mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 09:16:20 +00:00
bug #41188 Alignment error in memp_init() when MEMP_SEPARATE_POOLS==1
This commit is contained in:
parent
91333c5d2f
commit
75f2c56558
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user