zephyr/subsys/modem
Tomi Fontanilles 6aef9d4d9a modem: ppp: fix crash when attaching to a pipe
modem_pipe_attach() can send events before returning, which could
provoke a crash as ppp->pipe, still NULL at that time, could be
used either in receiving (if the pipe had some data pending) or
in sending (if the PPP module had already been attached and had
some data to send in its transmit buffer).

ppp->pipe is now set before modem_pipe_attach().
Also, the ATTACHED_BIT is now set only after having actually attached.
And finally, the send_work is now scheduled on PIPE_EVENT_OPENED
so that data is flushed when the (closed) attached pipe is opened.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-02-28 18:02:17 +00:00
..
backends modem: backends: use CONFIG_MODEM_MODULES_LOG_LEVEL 2024-02-28 18:02:17 +00:00
CMakeLists.txt
Kconfig modem: Add experimental tag 2023-11-03 09:56:30 +01:00
modem_chat.c modem: chat: Implement TRANSMIT_IDLE event 2024-01-25 11:22:42 +01:00
modem_cmux.c modem: small improvements 2024-02-26 11:34:32 +00:00
modem_pipe.c modem: pipe: Add TRANSMIT_IDLE event 2024-01-11 16:09:44 +00:00
modem_ppp.c modem: ppp: fix crash when attaching to a pipe 2024-02-28 18:02:17 +00:00