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 drivers: modem: introduce socket helper layer 2019-08-10 00:03:39 +02:00
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 drivers: modem: cmd handler: introduce cmd handler driver layer 2019-08-10 00:03:39 +02:00
modem_cmd_handler.h drivers: modem: cmd handler: introduce cmd handler driver layer 2019-08-10 00:03:39 +02:00
modem_context.c drivers: modem: context helper: introduce modem context helper driver 2019-08-10 00:03:39 +02:00
modem_context.h drivers: modem: context helper: introduce modem context helper driver 2019-08-10 00:03:39 +02:00
modem_iface_uart.c drivers: modem: interface: introduce UART interface driver layer 2019-08-10 00:03:39 +02:00
modem_iface_uart.h drivers: modem: interface: introduce UART interface driver layer 2019-08-10 00:03:39 +02:00
modem_pin.c drivers: modem: context helper: introduce modem context helper driver 2019-08-10 00:03:39 +02:00
modem_receiver.c cleanup: include/: move uart.h to drivers/uart.h 2019-06-27 22:55:49 -04:00
modem_receiver.h cleanup: include/: move ring_buffer.h to sys/ring_buffer.h 2019-06-27 22:55:49 -04:00
modem_shell.c drivers: modem: context helper: introduce modem context helper driver 2019-08-10 00:03:39 +02:00
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 drivers: modem: introduce socket helper layer 2019-08-10 00:03:39 +02:00
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