powerpc/64/kuap: Move kuap checks out of MSR[RI]=0 regions of exit code

Any kind of WARN causes a program check that will crash with
unrecoverable exception if it occurs when RI is clear.

Fixes: 68b34588e2 ("powerpc/64/sycall: Implement syscall entry/exit logic in C")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200429065654.1677541-2-npiggin@gmail.com
This commit is contained in:
Nicholas Piggin 2020-04-29 16:56:49 +10:00 • committed by Michael Ellerman
commit c0d7dcf89e