Skip to content

Conversation

@rlubos
Copy link
Contributor

@rlubos rlubos commented Jun 5, 2020

When z_get_fd_obj_and_vtable() function returns NULL (no valid entry
in the FD table for the socket), there is no need for further usermode
checks on the ctx pointer, as there is nothing to invalidate in that
case.

Fixes #25990
Fixes #25991

Signed-off-by: Robert Lubos [email protected]

When `z_get_fd_obj_and_vtable()` function returns NULL (no valid entry
in the FD table for the socket), there is no need for further usermode
checks on the `ctx` pointer, as there is nothing to invalidate in that
case.

Fixes zephyrproject-rtos#25990
Fixes zephyrproject-rtos#25991

Signed-off-by: Robert Lubos <[email protected]>
@carlescufi carlescufi added this to the v2.3.0 milestone Jun 5, 2020
@carlescufi carlescufi merged commit 370dfe0 into zephyrproject-rtos:master Jun 5, 2020
@dleach02
Copy link
Member

dleach02 commented Jun 5, 2020

I can confirm that this fixes the problem reported in #25991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

5 participants