diff --git a/src/binfmt_rto/binfmt_rto_604.c b/src/binfmt_rto/binfmt_rto_604.c index 44ad5a3aae53c1a1490b429b1baeda4f6eb7cc75..981e51c4fd94107ee0f324d329ffe4b88e4822ce 100644 --- a/src/binfmt_rto/binfmt_rto_604.c +++ b/src/binfmt_rto/binfmt_rto_604.c @@ -1161,6 +1161,7 @@ static int load_elf_binary(struct linux_binprm *bprm) struct list_head *preload_seg_pos = NULL; struct loaded_seg *loaded_seg; + retval = -ENOEXEC; /* close feature to rmmod this ko */ if (!use_rto) { goto out; @@ -1170,7 +1171,6 @@ static int load_elf_binary(struct linux_binprm *bprm) load_rto: elf_ex = (struct elfhdr *)bprm->buf; is_rto_format = elf_ex->e_flags & OS_SPECIFIC_FLAG_RTO; - retval = -ENOEXEC; if (!is_rto_format && !is_rto_symbolic_link) { goto out;