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:
Simon Goldschmidt 2018-10-12 22:26:33 +02:00
parent 06016cc939
commit a63a7d3c76

View File

@ -482,7 +482,7 @@ pppos_input(ppp_pcb *ppp, u8_t *s, int l)
u8_t cur_char;
u8_t escaped;
PPPOS_DECL_PROTECT(lev);
#if PPP_INPROC_IRQ_SAFE
#if !PPP_INPROC_IRQ_SAFE
LWIP_ASSERT_CORE_LOCKED();
#endif