new helper: read_code()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Apr 2013 00:31:37 +0000 (20:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2013 19:40:23 +0000 (15:40 -0400)
commit3dc20cb282ec03cc4c997130d680c800011ed479
treed8374e58a433a144c571e193cb0b024374ee0b6a
parent3af0761307d04f6b9a4626fb80011a22c143d75e
new helper: read_code()

switch binfmts that use ->read() to that (and to kernel_read()
in several cases in binfmt_flat - sure, it's nommu, but still,
doing ->read() into kmalloc'ed buffer...)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/ia32/ia32_aout.c
fs/binfmt_aout.c
fs/binfmt_elf_fdpic.c
fs/binfmt_flat.c
fs/exec.c
include/linux/binfmts.h