Skip to content

Commit f97304f

Browse files
pussuwxiaoxiang781216
authored andcommitted
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.
1 parent 400a8e3 commit f97304f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

nshlib/nsh_vars.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ int nsh_unsetvar(FAR struct nsh_vtbl_s *vtbl, FAR const char *name)
346346
}
347347
}
348348

349-
sched_unlock();
350349
return ret;
351350
}
352351
#endif

0 commit comments

Comments
 (0)