mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-26 09:35:23 +00:00
Fix bug #54806 (ppp: invalid LWIP_ASSERT_CORE_LOCKED() check)
pppos_input() is safe to call from outside tcpip_thread when PPP_INPROC_IRQ_SAFE == 1, so only check if PPP_INPROC_IRQ_SAFE == 0 Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
06016cc939
commit
a63a7d3c76
@ -482,7 +482,7 @@ pppos_input(ppp_pcb *ppp, u8_t *s, int l)
|
|||||||
u8_t cur_char;
|
u8_t cur_char;
|
||||||
u8_t escaped;
|
u8_t escaped;
|
||||||
PPPOS_DECL_PROTECT(lev);
|
PPPOS_DECL_PROTECT(lev);
|
||||||
#if PPP_INPROC_IRQ_SAFE
|
#if !PPP_INPROC_IRQ_SAFE
|
||||||
LWIP_ASSERT_CORE_LOCKED();
|
LWIP_ASSERT_CORE_LOCKED();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user