mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
binfmt: Fix error handling in exec_module
Remove an extra return statement in exec_module failure path, ensuring proper cleanup when errors occurs. Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
eb65ea5612
commit
452557a249
2 changed files with 1 additions and 2 deletions
|
|
@ -369,7 +369,6 @@ errout_with_tcbinit:
|
|||
#endif
|
||||
|
||||
nxtask_uninit(tcb);
|
||||
return ret;
|
||||
|
||||
errout_with_addrenv:
|
||||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
#ifdef CONFIG_DISABLE_ENVIRON
|
||||
# define env_dup(group, envp) (0)
|
||||
# define env_release(group) (0)
|
||||
# define env_release(group) ((void)0)
|
||||
#else
|
||||
|
||||
# define SCHED_ENVIRON_RESERVED (4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue