powerpc/32s: Fix another build failure with CONFIG_PPC_KUAP_DEBUG
commitc46fa368c478918a17671f54b9886dcff41f57c2
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 30 May 2020 17:16:33 +0000 (30 17:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:33:07 +0000 (22 09:33 +0200)
tree1b36b572c19bdfdc04448ead7c26d2450e2e04d6
parent56b57cb7a3da57c6d3c87a040a0a3da42ae664b3
powerpc/32s: Fix another build failure with CONFIG_PPC_KUAP_DEBUG

commit 74016701fe5f873ae23bf02835407227138d874d upstream.

'thread' doesn't exist in kuap_check() macro.

Use 'current' instead.

Fixes: a68c31fc01ef ("powerpc/32s: Implement Kernel Userspace Access Protection")
Cc: stable@vger.kernel.org
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b459e1600b969047a74e34251a84a3d6fdf1f312.1590858925.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/book3s/32/kup.h