binfmt: Immediately exit from elf_loadbinary if elf format isn't supported

This commit is contained in:
wanggang26 2023-07-02 20:49:26 +08:00 committed by Xiang Xiao
parent 76cf66165a
commit 57d521cc59

View File

@ -277,6 +277,7 @@ static int elf_loadbinary(FAR struct binary_s *binp,
{
berr("Unexpected elf type %d\n", loadinfo.ehdr.e_type);
ret = -ENOEXEC;
goto errout_with_load;
}
/* Return the load information */