Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.cz>2017-10-11 11:04:14 +0200
committerJiri Kosina <jkosina@suse.cz>2017-10-11 14:30:40 +0200
commit74323ec464567e74b940f37824eb1efa79c95612 (patch)
tree70a85c5f395a0eb1eddf9f6f7c16f374da791fca
parentec6a58ded8a6ef03678130c48e6ce562b45c3b2b (diff)
fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-lengthrpm-3.0.101-108.13
-rw-r--r--fs/binfmt_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index f22f59897044..8a12bc272b3e 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -815,7 +815,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
total_size = total_mapping_size(elf_phdata,
loc->elf_ex.e_phnum);
if (!total_size) {
- error = -EINVAL;
+ retval = -EINVAL;
goto out_free_dentry;
}
}