f06c06de07
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> |
||
---|---|---|
.. | ||
ipc_service | ||
rpmsg_service | ||
CMakeLists.txt | ||
Kconfig |