drivers/rpmsg: Fix a typo error of rpmsg_device_destory()

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3 2024-09-24 18:41:58 +08:00 committed by Xiang Xiao
parent b8029d28a3
commit 73b7128fb6

View file

@ -434,7 +434,7 @@ void rpmsg_device_destory(FAR struct rpmsg_s *rpmsg)
#endif
nxrmutex_lock(&rpmsg->lock);
metal_list_for_each_safe(&rpmsg->bind, node, tmp)
metal_list_for_each_safe(&rpmsg->bind, tmp, node)
{
FAR struct rpmsg_bind_s *bind =
metal_container_of(node, struct rpmsg_bind_s, node);