powerpc/module64: Fix comment in R_PPC64_ENTRY handling
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 5 Jul 2019 14:18:53 +0000 (00:18 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 09:42:57 +0000 (11:42 +0200)
commit2b773edf89ae30f4e0a706558ae2eb8a06a086ce
tree04ad413831877270a1723f78786851c5961294dd
parent0ae9be948390cb04b2c1959c2b14400cfccb2a29
powerpc/module64: Fix comment in R_PPC64_ENTRY handling

commit 2fb0a2c989837c976b68233496bbaefb47cd3d6f upstream.

The comment here is wrong, the addi reads from r2 not r12. The code is
correct, 0x38420000 = addi r2,r2,0.

Fixes: a61674bdfc7c ("powerpc/module: Handle R_PPC64_ENTRY relocations")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/module_64.c