hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/arch/um/kernel/stacktrace.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
34 * Copyright (C) 2013 Richard Weinberger <richard@nod.at>
45 * Copyright (C) 2014 Google Inc., Author: Daniel Walter <dwalter@google.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107
118 #include <linux/kallsyms.h>
....@@ -63,8 +60,6 @@
6360 static void __save_stack_trace(struct task_struct *tsk, struct stack_trace *trace)
6461 {
6562 dump_trace(tsk, &dump_ops, trace);
66
- if (trace->nr_entries < trace->max_entries)
67
- trace->entries[trace->nr_entries++] = ULONG_MAX;
6863 }
6964
7065 void save_stack_trace(struct stack_trace *trace)