summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/stacktrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/stacktrace.c')
-rw-r--r--arch/um/kernel/stacktrace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/um/kernel/stacktrace.c b/arch/um/kernel/stacktrace.c
index ebe7bcf62684..bd95e020d509 100644
--- a/arch/um/kernel/stacktrace.c
+++ b/arch/um/kernel/stacktrace.c
@@ -63,8 +63,6 @@ static const struct stacktrace_ops dump_ops = {
static void __save_stack_trace(struct task_struct *tsk, struct stack_trace *trace)
{
dump_trace(tsk, &dump_ops, trace);
- if (trace->nr_entries < trace->max_entries)
- trace->entries[trace->nr_entries++] = ULONG_MAX;
}
void save_stack_trace(struct stack_trace *trace)