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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 06:20:00 +0000 (23:20 -0700)
commitf0d445db03594ec6658c5fee64099e181f5ce570
tree8b26268ba1a595807babc1dca506c644066d060d
parentfe023f735b36f809b4d740e86f15658a2852fc09
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/binfmt_elf.c