Skip to content
Commit a7379234 authored by Michael Scott's avatar Michael Scott Committed by Ioannis Glaropoulos
Browse files

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: default avatarTobias Svehagen <tobias.svehagen@gmail.com>
Signed-off-by: default avatarMichael Scott <mike@foundries.io>
parent 4c890186
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment