powerpc/lib/sstep: Fix 'sthcx' instruction
authorAnders Roxell <anders.roxell@linaro.org>
Thu, 24 Feb 2022 16:22:13 +0000 (17:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:24:04 +0000 (14:24 +0200)
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 <arnd@arndb.de>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220224162215.3406642-1-anders.roxell@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/lib/sstep.c

index 1a16ad18f9f23e2a5813e50184642b3f3af3bea4..8265697f5ff8b41f19c522b771220e4f37c229c0 100644 (file)
@@ -3306,7 +3306,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: