This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 398f7a26f72b7dc1cff1844a58cf886ee275267e Author: rongyichang <[email protected]> AuthorDate: Mon Mar 16 21:38:29 2026 +0800 drivers/misc/rpmsgdev_server: do not clear the pending read rpmsgdev_read_work() and rpmsgdev_read_handler() cleared the whole struct rpmsgdev_read_pend_s after a read, including the embedded work_s, whose list node may still be linked into the work queue. Stop clearing it; every field is set again before the next read. Signed-off-by: rongyichang <[email protected]> Signed-off-by: Bowen Wang <[email protected]> --- drivers/misc/rpmsgdev_server.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/misc/rpmsgdev_server.c b/drivers/misc/rpmsgdev_server.c index 37fa135a30e..85fd22737a3 100644 --- a/drivers/misc/rpmsgdev_server.c +++ b/drivers/misc/rpmsgdev_server.c @@ -285,8 +285,6 @@ static void rpmsgdev_read_work(FAR void *arg) rpmsgdev_read_nonblock_handler(&server->ept, rsp, sizeof(*rsp), 0, NULL); } - - memset(pend, 0, sizeof(*pend)); } /**************************************************************************** @@ -330,7 +328,6 @@ static int rpmsgdev_read_handler(FAR struct rpmsg_endpoint *ept, if (rsp->header.result < 0) { rpmsg_send(ept, rsp, sizeof(*rsp) - 1); - memset(pend, 0, sizeof(*pend)); } return 0;
