From 19f269e54ba3f41403e02577f28c8c1d96e9ca67 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 14 Jul 2022 15:50:37 +0800 Subject: [PATCH] syslog: Remove the lock from syslog_default_write to avoid the problem when is called from interrupt/signal handler Signed-off-by: Xiang Xiao --- drivers/syslog/syslog_channel.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/syslog/syslog_channel.c b/drivers/syslog/syslog_channel.c index 60cf185368..360d97d2d4 100644 --- a/drivers/syslog/syslog_channel.c +++ b/drivers/syslog/syslog_channel.c @@ -217,11 +217,7 @@ static ssize_t syslog_default_write(FAR struct syslog_channel_s *channel, FAR const char *buffer, size_t buflen) { #if defined(CONFIG_ARCH_LOWPUTC) - static sem_t sem = SEM_INITIALIZER(1); - - nxsem_wait(&sem); up_puts(buffer); - nxsem_post(&sem); #endif UNUSED(channel);