binfmt_flat: flat_{get,put}_addr_from_rp() should be able to fail
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 2 May 2017 23:52:17 +0000 (19:52 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 3 Jul 2017 22:44:02 +0000 (18:44 -0400)
commit468138d78510688fb5476f98d23f11ac6a63229a
tree5f235bc85343bf3f314201a1d281881625d67abe
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
binfmt_flat: flat_{get,put}_addr_from_rp() should be able to fail

on MMU targets EFAULT is possible here.  Make both return 0 or error,
passing what used to be the return value of flat_get_addr_from_rp()
by reference.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 files changed:
arch/arm/include/asm/flat.h
arch/blackfin/include/asm/flat.h
arch/blackfin/kernel/flat.c
arch/c6x/include/asm/flat.h
arch/h8300/include/asm/flat.h
arch/m32r/include/asm/flat.h
arch/m68k/include/asm/flat.h
arch/microblaze/include/asm/flat.h
arch/sh/include/asm/flat.h
arch/xtensa/include/asm/flat.h
fs/binfmt_flat.c
include/linux/flat.h