Skip to content

Commit

Permalink
rpmsg: Pass endpoint private data during registration
Browse files Browse the repository at this point in the history
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 <arnaud.pouliquen@foss.st.com>
  • Loading branch information
arnopo committed Jun 24, 2024
1 parent 977d293 commit 8d08fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rpmsg/rpmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8d08fae

Please sign in to comment.