This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d0ee807d1c8d2f930ba01f0245718f34d3ef3bef Author: Bowen Wang <[email protected]> AuthorDate: Mon Sep 8 22:45:55 2025 +0800 drivers/rpmsg: restart the bind list walk after each match rpmsg_register_callback() frees the bind record it matched and sets again to walk the list from the start, but kept iterating the list it had just modified. Break out of the walk after the match. Signed-off-by: Bowen Wang <[email protected]> --- drivers/rpmsg/rpmsg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rpmsg/rpmsg.c b/drivers/rpmsg/rpmsg.c index d6e7bd927e4..acb5dc6a2b8 100644 --- a/drivers/rpmsg/rpmsg.c +++ b/drivers/rpmsg/rpmsg.c @@ -603,6 +603,7 @@ int rpmsg_register_callback(FAR void *priv, again = true; nxrmutex_lock(&rpmsg->lock); + break; } } }
