]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/signal32: Perform access_ok() inside restore_user_regs()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 19 Mar 2021 11:06:55 +0000 (11:06 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 3 Apr 2021 10:22:19 +0000 (21:22 +1100)
commit2dd2c93ef98d9f746f751e00363881c035d6b19b
tree7ac4ec1511ebea6086e6e60cf35e89c656d3ddc0
parent5806dd840983150feb0a53718b46fa170c573a88
powerpc/signal32: Perform access_ok() inside restore_user_regs()

In preparation of using user_access_begin/end in restore_user_regs(),
move the access_ok() inside the function.

It makes no difference as the behaviour on a failed access_ok() is
the same as on failed restore_user_regs().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c106eb2f37c3040f1fd38b40e50c670feb7cb835.1616151715.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/signal_32.c