Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26acd071 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss_prealloc: Use new API to print stack trace"

parents d905a441 5e336640
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -166,6 +166,7 @@ EXPORT_SYMBOL(wcnss_prealloc_put);
void wcnss_prealloc_check_memory_leak(void)
{
	int i, j = 0;
	struct stack_trace *trace = NULL;

	for (i = 0; i < ARRAY_SIZE(wcnss_allocs); i++) {
		if (!wcnss_allocs[i].occupied)
@@ -178,7 +179,8 @@ void wcnss_prealloc_check_memory_leak(void)

		pr_err("Size: %zu, addr: %pK, backtrace:\n",
		       wcnss_allocs[i].size, wcnss_allocs[i].ptr);
		print_stack_trace(&wcnss_allocs[i].trace, 1);
		trace = &wcnss_allocs[i].trace;
		stack_trace_print(trace->entries, trace->nr_entries, 1);
	}
}
#else