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:
ligd 2025-01-22 13:08:36 +08:00 committed by Matteo Golin
parent eb65ea5612
commit 452557a249
2 changed files with 1 additions and 2 deletions

View file

@ -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)

View file

@ -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)