Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / kernel / stacktrace.c
index 5667f1da3eded0ee81ea430179b73ee8a9c2b6ce..36139de0a3c4bcb7ba7da936a8d43fba08aa5929 100644 (file)
@@ -207,7 +207,7 @@ int stack_trace_save_tsk_reliable(struct task_struct *tsk, unsigned long *store,
 
        ret = arch_stack_walk_reliable(consume_entry, &c, tsk);
        put_task_stack(tsk);
-       return ret;
+       return ret ? ret : c.len;
 }
 #endif