Commit bda84019 authored by Ian Rogers's avatar Ian Rogers Committed by Namhyung Kim
Browse files

perf debug: Avoid stack overflow in recursive error message



In debug_file, pr_warning_once is called on error. As that function
calls debug_file the function will yield a stack overflow. Switch the
location of the call so the recursion is avoided.

Reviewed-by: default avatarHoward Chu <howardchu95@gmail.com>
Signed-off-by: default avatarIan Rogers <irogers@google.com>
Reviewed-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250228222308.626803-2-irogers@google.com


Fixes: ec49230c ("perf debug: Expose debug file")
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent b10f7430
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment