diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index d0efb5cb1b00ece9656805cc62124454d00cda2d..c1319ac19ebb901577cdb1b122d41ac5bdbd168c 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c @@ -2277,7 +2277,8 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *re return; } - perf_callchain_store(entry, regs->ip); + if (perf_callchain_store(entry, regs->ip)) + return; dump_trace(NULL, regs, NULL, 0, &backtrace_ops, entry); }