zephyr/drivers/modem
Michael Scott a7379234ba drivers: modem: socket: sock_fd isn't an index in modem_socket_put()
modem_socket_put() originally took an index as a parameter and was
later swapped to sock_fd as the reference.

The internal code was never updated to reflect that sock_fd isn't an
index -- it's a separate reference generated via z_reserve_fd().

Let's correct the modem_socket_put() logic.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/18238

Reported-by: Tobias Svehagen <tobias.svehagen@gmail.com>
Signed-off-by: Michael Scott <mike@foundries.io>
2019-08-14 11:01:47 +02:00
..
CMakeLists.txt drivers: modem: ublox-sara-r4: Support SARA-U2 modems, sense VINT 2019-08-10 00:03:39 +02:00
Kconfig
Kconfig.ublox-sara-r4 drivers: modem: ublox-sara-r4: Support SARA-U2 modems, sense VINT 2019-08-10 00:03:39 +02:00
Kconfig.wncm14a2a
modem_cmd_handler.c
modem_cmd_handler.h
modem_context.c
modem_context.h
modem_iface_uart.c
modem_iface_uart.h
modem_pin.c
modem_receiver.c
modem_receiver.h
modem_shell.c
modem_socket.c drivers: modem: socket: sock_fd isn't an index in modem_socket_put() 2019-08-14 11:01:47 +02:00
modem_socket.h
ublox-sara-r4.c drivers: modem: ublox-sara-r4: Support SARA-U2 modems, sense VINT 2019-08-10 00:03:39 +02:00
wncm14a2a.c