mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
memp: Fix if MEMP_OVERFLOW_CHECK guard in memp_free_pool
Current code already checks memp_overflow_check_all() in memp_free() if MEMP_OVERFLOW_CHECK >= 2. So in memp_free_pool(), it should use MEMP_OVERFLOW_CHECK == 1 instead. Fixes: c838e1ed5b8c ("Implement possibility to declare private memory pools") Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
8010d6706e
commit
5c27429958
@ -363,7 +363,7 @@ memp_free_pool(const struct memp_desc* desc, void *mem)
|
|||||||
|
|
||||||
SYS_ARCH_PROTECT(old_level);
|
SYS_ARCH_PROTECT(old_level);
|
||||||
|
|
||||||
#if MEMP_OVERFLOW_CHECK == 2
|
#if MEMP_OVERFLOW_CHECK == 1
|
||||||
memp_overflow_check_element_overflow(memp, desc);
|
memp_overflow_check_element_overflow(memp, desc);
|
||||||
memp_overflow_check_element_underflow(memp, desc);
|
memp_overflow_check_element_underflow(memp, desc);
|
||||||
#endif /* MEMP_OVERFLOW_CHECK */
|
#endif /* MEMP_OVERFLOW_CHECK */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user