From 928426295fecf9ee86e26d0b262f1838f112eb43 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Tue, 21 Dec 2021 00:10:54 +0800 Subject: [PATCH] input/ads7843e: complement critical section operation Signed-off-by: chao.an --- drivers/input/ads7843e.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/ads7843e.c b/drivers/input/ads7843e.c index f299c93afc..1217dc879f 100644 --- a/drivers/input/ads7843e.c +++ b/drivers/input/ads7843e.c @@ -1216,6 +1216,7 @@ int ads7843e_register(FAR struct spi_dev_s *spi, */ #ifdef CONFIG_ADS7843E_MULTIPLE + flags = enter_critical_section(); priv->flink = g_ads7843elist; g_ads7843elist = priv; leave_critical_section(flags);