diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2016-08-24 11:50:18 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-08 08:58:40 +0200 |
commit | 5a8ff54c260ecfed3de9b8d1272eb87826935df8 (patch) | |
tree | b1c2b4c3166e42e6b41ebc9d4c3b48547d96ce95 /arch/x86/kernel/dumpstack_32.c | |
parent | 4b8afafbe743be1a81c96ddcd75b19c534d5e262 (diff) | |
download | linux-stable-5a8ff54c260ecfed3de9b8d1272eb87826935df8.tar.gz linux-stable-5a8ff54c260ecfed3de9b8d1272eb87826935df8.tar.bz2 linux-stable-5a8ff54c260ecfed3de9b8d1272eb87826935df8.zip |
x86/dumpstack: Remove unnecessary stack pointer arguments
When calling show_stack_log_lvl() or dump_trace() with a regs argument,
providing a stack pointer or frame pointer is redundant.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>d
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Byungchul Park <byungchul.park@lge.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nilay Vaish <nilayvaish@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1694e2e955e3b9a73a3c3d5ba2634344014dd550.1472057064.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/dumpstack_32.c')
-rw-r--r-- | arch/x86/kernel/dumpstack_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/dumpstack_32.c b/arch/x86/kernel/dumpstack_32.c index 358fe1cd4e5b..c533b8b5a373 100644 --- a/arch/x86/kernel/dumpstack_32.c +++ b/arch/x86/kernel/dumpstack_32.c @@ -122,7 +122,7 @@ void show_regs(struct pt_regs *regs) u8 *ip; pr_emerg("Stack:\n"); - show_stack_log_lvl(NULL, regs, ®s->sp, 0, KERN_EMERG); + show_stack_log_lvl(NULL, regs, NULL, 0, KERN_EMERG); pr_emerg("Code:"); |