diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-06-23 12:20:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-06-23 12:20:01 -0700 |
commit | da01e18a37a57f360222d3a123b8f6994aa1ad14 (patch) | |
tree | 047f12d7822b412bb4051690160339abce8aca32 /arch/x86/kernel/dumpstack_32.c | |
parent | 6720a305df74ca30bcc10fc316881641b6ff0c80 (diff) | |
download | linux-stable-da01e18a37a57f360222d3a123b8f6994aa1ad14.tar.gz linux-stable-da01e18a37a57f360222d3a123b8f6994aa1ad14.tar.bz2 linux-stable-da01e18a37a57f360222d3a123b8f6994aa1ad14.zip |
x86: avoid avoid passing around 'thread_info' in stack dumping code
None of the code actually wants a thread_info, it all wants a
task_struct, and it's just converting to a thread_info pointer much too
early.
No semantic change.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/kernel/dumpstack_32.c')
-rw-r--r-- | arch/x86/kernel/dumpstack_32.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/dumpstack_32.c b/arch/x86/kernel/dumpstack_32.c index 464ffd69b92e..fef917e79b9d 100644 --- a/arch/x86/kernel/dumpstack_32.c +++ b/arch/x86/kernel/dumpstack_32.c @@ -61,15 +61,13 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs, bp = stack_frame(task, regs); for (;;) { - struct thread_info *context; void *end_stack; end_stack = is_hardirq_stack(stack, cpu); if (!end_stack) end_stack = is_softirq_stack(stack, cpu); - context = task_thread_info(task); - bp = ops->walk_stack(context, stack, bp, ops, data, + bp = ops->walk_stack(task, stack, bp, ops, data, end_stack, &graph); /* Stop if not on irq stack */ |