zephyr/drivers/modem
Akseli Peltola 3bcb1efc33 modem: fix socket descriptor leak
z_free_fd() is called twice then you close(). For example in ublox sara
r4 driver offload_close() calls modem_socket_put() where z_free_fd() is
called first time. Then this same function is called another time in
socket.c in z_impl_zsock_close() after this function has called
offload_close() in ublox sara r4 driver. This causes socket
descriptor leak.

Fixes #26819

Signed-off-by: Akseli Peltola <peltsu1324@gmail.com>
2021-01-07 10:36:19 +02:00
..
CMakeLists.txt drivers: modem: Add support for quectel bg95 2020-12-01 17:43:59 -05:00
gsm_ppp.c drivers: modem: gsm_ppp: constify modem_cmd and setup_cmd structures 2020-11-24 12:59:50 +02:00
hl7800.c power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
Kconfig drivers: modem: Add support for quectel bg95 2020-12-01 17:43:59 -05:00
Kconfig.gsm net: ppp: Convert PPP driver to use normal UART APIs 2020-04-17 10:15:54 +03:00
Kconfig.hl7800 drivers: modem: hl7800: Make RX net_bufs configurable 2020-10-30 10:09:48 +02:00
Kconfig.quectel-bg9x drivers: modem: Add support for quectel bg95 2020-12-01 17:43:59 -05:00
Kconfig.ublox-sara-r4 drivers: modem: sara-r4: Add Kconfig to configure RSSI work 2020-12-03 17:37:48 -05:00
Kconfig.wncm14a2a kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
modem_cmd_handler.c drivers: modem: fix sending with zero timeout and no semaphore 2020-12-07 10:25:56 +02:00
modem_cmd_handler.h drivers: modem: modem_cmd_handler: Allow dynamic number of commands args 2020-12-03 17:37:48 -05:00
modem_context.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_context.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_iface_uart.c net: ppp: Avoid wrapping each byte in muxing headers 2020-10-19 18:29:02 +02:00
modem_iface_uart.h modem: iface_uart: improve RX flow with HW flow control 2020-10-05 17:04:52 +03:00
modem_pin.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
modem_receiver.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_receiver.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_shell.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_socket.c modem: fix socket descriptor leak 2021-01-07 10:36:19 +02:00
modem_socket.h drivers: modem: use zsock_ variants of socket API 2020-06-10 09:27:51 +03:00
quectel-bg9x.c drivers: modem: Add support for quectel bg95 2020-12-01 17:43:59 -05:00
quectel-bg9x.h drivers: modem: Add support for quectel bg95 2020-12-01 17:43:59 -05:00
ublox-sara-r4.c drivers: modem: sara-r4: Improve offload_sendmsg() support 2020-12-03 17:37:48 -05:00
wncm14a2a.c drivers: modem: wncm14a2a: set NET_CONTEXT_CONNECTED state 2020-12-14 18:15:49 +02:00