]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-length mappings
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 28 May 2015 22:44:24 +0000 (15:44 -0700)
committerJiri Slaby <jslaby@suse.cz>
Wed, 3 Jun 2015 09:33:16 +0000 (11:33 +0200)
commitbab6655ecb3ff43da784f5297ac04f5d991c1e23
tree5d2e27f64446437f4feb1400932579aa390dac45
parent330c542ff8f659055de1992935abaa18b121379e
fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-length mappings

commit 2b1d3ae940acd11be44c6eced5873d47c2e00ffa upstream.

load_elf_binary() returns `retval', not `error'.

Fixes: a87938b2e246b81b4fb ("fs/binfmt_elf.c: fix bug in loading of PIE binaries")
Reported-by: James Hogan <james.hogan@imgtec.com>
Cc: Michael Davidson <md@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/binfmt_elf.c