diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index d925f55e48572..8081aba116a72 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -928,7 +928,7 @@ static int load_elf_binary(struct linux_binprm *bprm) total_size = total_mapping_size(elf_phdata, loc->elf_ex.e_phnum); if (!total_size) { - error = -EINVAL; + retval = -EINVAL; goto out_free_dentry; } }