From f97304fa3f1bfa31d9cd2f37a9dbc3aa389bffd8 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 5 Nov 2024 14:01:32 +0200 Subject: [PATCH] nsh_vars: Remove rogue sched_unlock() There is no corresponding sched_lock() for this and therefore this causes random crashes. Found when running a long init script which utilizes shell variables in SMP mode. --- nshlib/nsh_vars.c | 1 - 1 file changed, 1 deletion(-) diff --git a/nshlib/nsh_vars.c b/nshlib/nsh_vars.c index f6620942c..57ed512cf 100644 --- a/nshlib/nsh_vars.c +++ b/nshlib/nsh_vars.c @@ -346,7 +346,6 @@ int nsh_unsetvar(FAR struct nsh_vtbl_s *vtbl, FAR const char *name) } } - sched_unlock(); return ret; } #endif