diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2019-11-22 14:35:34 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-11-30 12:52:45 +0300 |
commit | 103b4cca60d2c8c51f1290cc984b7046ccb8b46d (patch) | |
tree | 505c6574f045baadc36ddc70154e3a433a45a2e9 /arch/s390/include/asm/stacktrace.h | |
parent | 7f28dad395243c5026d649136823bbc40029a828 (diff) | |
download | linux-103b4cca60d2c8c51f1290cc984b7046ccb8b46d.tar.xz |
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/stacktrace.h')
-rw-r--r-- | arch/s390/include/asm/stacktrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/stacktrace.h b/arch/s390/include/asm/stacktrace.h index fee40212af11..0ae4bbf7779c 100644 --- a/arch/s390/include/asm/stacktrace.h +++ b/arch/s390/include/asm/stacktrace.h @@ -38,7 +38,7 @@ static inline unsigned long get_stack_pointer(struct task_struct *task, { if (regs) return (unsigned long) kernel_stack_pointer(regs); - if (!task || task == current) + if (task == current) return current_stack_pointer(); return (unsigned long) task->thread.ksp; } |