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>
Showing
- arch/arm/include/asm/flat.h 22 additions, 3 deletionsarch/arm/include/asm/flat.h
- arch/blackfin/include/asm/flat.h 15 additions, 10 deletionsarch/blackfin/include/asm/flat.h
- arch/blackfin/kernel/flat.c 6 additions, 7 deletionsarch/blackfin/kernel/flat.c
- arch/c6x/include/asm/flat.h 13 additions, 2 deletionsarch/c6x/include/asm/flat.h
- arch/h8300/include/asm/flat.h 18 additions, 6 deletionsarch/h8300/include/asm/flat.h
- arch/m32r/include/asm/flat.h 8 additions, 11 deletionsarch/m32r/include/asm/flat.h
- arch/m68k/include/asm/flat.h 20 additions, 3 deletionsarch/m68k/include/asm/flat.h
- arch/microblaze/include/asm/flat.h 17 additions, 17 deletionsarch/microblaze/include/asm/flat.h
- arch/sh/include/asm/flat.h 13 additions, 2 deletionsarch/sh/include/asm/flat.h
- arch/xtensa/include/asm/flat.h 13 additions, 2 deletionsarch/xtensa/include/asm/flat.h
- fs/binfmt_flat.c 22 additions, 17 deletionsfs/binfmt_flat.c
- include/linux/flat.h 1 addition, 1 deletioninclude/linux/flat.h
Please register or sign in to comment