powerpc/signal32: Use fault_in_pages_readable() to prefault user context
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 24 Apr 2018 16:04:25 +0000 (18:04 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 14:39:18 +0000 (00:39 +1000)
commit56b04d568f880a48d892e840cfaf4efc0f0ce39b
tree8ac4e93758f05f3d9a6c7c37ae44c6569bff7e8c
parentd04f11d2713e736a3740361f8b5bb42c7147c5a2
powerpc/signal32: Use fault_in_pages_readable() to prefault user context

Use fault_in_pages_readable() to prefault user context
instead of open coding

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/signal_32.c