From: Anders Roxell Date: Thu, 24 Feb 2022 16:22:13 +0000 (+0100) Subject: powerpc/lib/sstep: Fix 'sthcx' instruction X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aebe0422f2f0716a2ea2b5c514029196d16587db;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc/lib/sstep: Fix 'sthcx' instruction commit a633cb1edddaa643fadc70abc88f89a408fa834a upstream. Looks like there been a copy paste mistake when added the instruction 'stbcx' twice and one was probably meant to be 'sthcx'. Changing to 'sthcx' from 'stbcx'. Fixes: 350779a29f11 ("powerpc: Handle most loads and stores in instruction emulation code") Cc: stable@vger.kernel.org # v4.14+ Reported-by: Arnd Bergmann Signed-off-by: Anders Roxell Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220224162215.3406642-1-anders.roxell@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index eb3f7237d09a..bb85c423efee 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c @@ -2776,7 +2776,7 @@ int emulate_loadstore(struct pt_regs *regs, struct instruction_op *op) __put_user_asmx(op->val, ea, err, "stbcx.", cr); break; case 2: - __put_user_asmx(op->val, ea, err, "stbcx.", cr); + __put_user_asmx(op->val, ea, err, "sthcx.", cr); break; #endif case 4: