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.
This commit is contained in:
Ville Juven
2024-11-05 14:01:32 +02:00
committed by Xiang Xiao
parent 400a8e3264
commit f97304fa3f

View File

@@ -346,7 +346,6 @@ int nsh_unsetvar(FAR struct nsh_vtbl_s *vtbl, FAR const char *name)
}
}
sched_unlock();
return ret;
}
#endif