diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2019-11-22 12:35:34 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-11-30 10:52:45 +0100 |
commit | 103b4cca60d2c8c51f1290cc984b7046ccb8b46d (patch) | |
tree | 505c6574f045baadc36ddc70154e3a433a45a2e9 /arch/s390/include/asm/unwind.h | |
parent | s390: disable preemption when switching to nodat stack with CALL_ON_STACK (diff) | |
download | linux-103b4cca60d2c8c51f1290cc984b7046ccb8b46d.tar.xz linux-103b4cca60d2c8c51f1290cc984b7046ccb8b46d.zip |
s390/unwind: unify task is current checks
Avoid mixture of task == NULL and task == current meaning the same
thing and simply always initialize task with current in unwind_start.
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/unwind.h')
-rw-r--r-- | arch/s390/include/asm/unwind.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/include/asm/unwind.h b/arch/s390/include/asm/unwind.h index eaaefeceef6f..a2d8dd766987 100644 --- a/arch/s390/include/asm/unwind.h +++ b/arch/s390/include/asm/unwind.h @@ -61,7 +61,8 @@ static inline void unwind_start(struct unwind_state *state, struct pt_regs *regs, unsigned long sp) { - sp = sp ? : get_stack_pointer(task, regs); + task = task ?: current; + sp = sp ?: get_stack_pointer(task, regs); __unwind_start(state, task, regs, sp); } |