Commit 42b9138f authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files
parent 1e74829f
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -128,17 +128,14 @@ int unwind_user_faultable(struct unwind_stacktrace *trace)

	cache = info->cache;
	trace->entries = cache->entries;

	if (cache->nr_entries) {
	trace->nr = cache->nr_entries;
	/*
	 * The user stack has already been previously unwound in this
	 * entry context.  Skip the unwind and use the cache.
	 */
		trace->nr = cache->nr_entries;
	if (trace->nr)
		return 0;
	}

	trace->nr = 0;
	unwind_user(trace, UNWIND_MAX_ENTRIES);

	cache->nr_entries = trace->nr;