diff options
Diffstat (limited to 'kernel/unwind/deferred.c')
| -rw-r--r-- | kernel/unwind/deferred.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/kernel/unwind/deferred.c b/kernel/unwind/deferred.c index 6395192d7225..09617d8ae24b 100644 --- a/kernel/unwind/deferred.c +++ b/kernel/unwind/deferred.c @@ -128,17 +128,14 @@ int unwind_user_faultable(struct unwind_stacktrace *trace) cache = info->cache; trace->entries = cache->entries; - - if (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; + trace->nr = cache->nr_entries; + /* + * The user stack has already been previously unwound in this + * entry context. Skip the unwind and use the cache. + */ + if (trace->nr) return 0; - } - trace->nr = 0; unwind_user(trace, UNWIND_MAX_ENTRIES); cache->nr_entries = trace->nr; |
