diff --git a/arch/arm64/kernel/livepatch.c b/arch/arm64/kernel/livepatch.c index ead6a34bb523453b26f85afb6670924b374f4f66..460e8585f5c0b203768cc8896394228ad3023c83 100644 --- a/arch/arm64/kernel/livepatch.c +++ b/arch/arm64/kernel/livepatch.c @@ -109,7 +109,7 @@ int klp_check_calltrace(struct klp_patch *patch, int enable) .ret = 0 }; - do_each_thread(g, t) { + for_each_process_thread(g, t) { frame.fp = thread_saved_fp(t); frame.pc = thread_saved_pc(t); #ifdef CONFIG_FUNCTION_GRAPH_TRACER @@ -122,7 +122,7 @@ int klp_check_calltrace(struct klp_patch *patch, int enable) show_stack(t, NULL); goto out; } - } while_each_thread(g, t); + } out: return ret;