From f2f66453495a06e38045d7c2ac7e71c65ab68a1d Mon Sep 17 00:00:00 2001 From: Arnaud Pouliquen Date: Mon, 24 Jun 2024 19:29:28 +0200 Subject: [PATCH] lib: rpmsg: Pass endpoint private data during registration This patch fixes the rpmsg_create_ept function passing the endpoint's private data that can be set by the application before the call of rpmsg_create_ept. Signed-off-by: Arnaud Pouliquen --- lib/rpmsg/rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rpmsg/rpmsg.c b/lib/rpmsg/rpmsg.c index 7a0e02821..39774bc17 100644 --- a/lib/rpmsg/rpmsg.c +++ b/lib/rpmsg/rpmsg.c @@ -354,7 +354,7 @@ int rpmsg_create_ept(struct rpmsg_endpoint *ept, struct rpmsg_device *rdev, */ } - rpmsg_register_endpoint(rdev, ept, name, addr, dest, cb, unbind_cb, NULL); + rpmsg_register_endpoint(rdev, ept, name, addr, dest, cb, unbind_cb, ept->priv); metal_mutex_release(&rdev->lock); /* Send NS announcement to remote processor */