Merge remote-tracking branch 'lsk/v3.10/topic/arm64-insn' into linux-linaro-lsk
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / kernel / signal_64.c
index 35c20a1fb36510594a37a10e47746bffa4b112ca..74d9615a6bb6d1d9053d15ac59a1dba1537459f7 100644 (file)
@@ -513,6 +513,8 @@ static long restore_tm_sigcontexts(struct pt_regs *regs,
        }
 #endif
        tm_enable();
+       /* Make sure the transaction is marked as failed */
+       current->thread.tm_texasr |= TEXASR_FS;
        /* This loads the checkpointed FP/VEC state, if used */
        tm_recheckpoint(&current->thread, msr);