anchao commented on code in PR #17395:
URL: https://github.com/apache/nuttx/pull/17395#discussion_r2575600272
##########
drivers/rpmsg/rpmsg_ping.c:
##########
@@ -162,7 +167,7 @@ static int rpmsg_ping_once(FAR struct rpmsg_endpoint *ept,
int len,
msg->cookie = (uintptr_t)&sem;
nxsem_init(&sem, 0, 0);
- ret = rpmsg_send_nocopy(ept, msg, msg->len);
+ ret = rpmsg_sendto_nocopy(ept, msg, msg->len);
Review Comment:
Because endpoint checks can involve race conditions, to avoid holding
critical sections, the endpoint state is checked in 2 phases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]