Skip to content

Commit a8a934e

Browse files
author
Martin Schwidefsky
committed
s390: fix control register update
The git commit c63bade "s390: optimize control register update" broke the update for control register 0. After the update do the lctlg from the correct value. Cc: <[email protected]> # 3.14 Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent 75ff24f commit a8a934e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/ptrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void update_cr_regs(struct task_struct *task)
6464
if (task->thread.per_flags & PER_FLAG_NO_TE)
6565
cr_new &= ~(1UL << 55);
6666
if (cr_new != cr)
67-
__ctl_load(cr, 0, 0);
67+
__ctl_load(cr_new, 0, 0);
6868
/* Set or clear transaction execution TDC bits 62 and 63. */
6969
__ctl_store(cr, 2, 2);
7070
cr_new = cr & ~3UL;

0 commit comments

Comments
 (0)