zephyr/subsys/ipc
Jackson Cooper-Driver f06c06de07 ipc_service: Add endpoint registered check
Currently, it is possible to call various ipc_service functions
which take in an endpoint pointer (such as send, get_tx_buffer)
with an endpoint which has not been registered with the instance.
This leads to dereferencing a NULL pointer when the function tries
to access the api field of ept->instance.
This patch adds in multiple checks to ensure that the endpoint is
registered before continuing, one in the frontend, when ensures
that the ept->instance pointer is not NULL and one in the backend
which checks the value of the token pointer. If either of these fail,
we return -ENOENT.

Signed-off-by: Jackson Cooper-Driver <jackson.cooper---driver@amd.com>
2022-07-14 10:29:42 +02:00
..
ipc_service ipc_service: Add endpoint registered check 2022-07-14 10:29:42 +02:00
rpmsg_service all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
CMakeLists.txt ipc: ipc_service: Rework multi-instance backend. 2021-10-11 20:58:09 -04:00
Kconfig ipc: ipc_service: Rework multi-instance backend. 2021-10-11 20:58:09 -04:00