From 279a676978c6cd4dd884744ad7e02bcc40c73508 Mon Sep 17 00:00:00 2001 From: yintao Date: Fri, 12 Apr 2024 18:38:56 +0800 Subject: [PATCH] syslog_rpmsg: Ensure the syslog ept is ready when rpmsg_send Signed-off-by: yintao --- drivers/syslog/syslog_rpmsg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/syslog/syslog_rpmsg.c b/drivers/syslog/syslog_rpmsg.c index 99af9e3c71..1278611c90 100644 --- a/drivers/syslog/syslog_rpmsg.c +++ b/drivers/syslog/syslog_rpmsg.c @@ -125,6 +125,11 @@ static bool syslog_rpmsg_transfer(FAR struct syslog_rpmsg_s *priv, bool wait) size_t off; size_t len_end; + if (!is_rpmsg_ept_ready(&priv->ept)) + { + return false; + } + do { msg = rpmsg_get_tx_payload_buffer(&priv->ept, &space, wait);