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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 May 2015 01:25:18 +0000 (18:25 -0700)
commit2b1d3ae940acd11be44c6eced5873d47c2e00ffa
treedbf9ce6520a67e4277552ef1255581a7b76d139a
parent649b8de2f75145bf14cb1783688e16d51ac9b89a
fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-length mappings

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>
fs/binfmt_elf.c