aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-10-06 16:57:23 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-10-07 11:40:28 +0200
commitdf477f663a7efa4704419e376d30f88c105d8594 (patch)
tree2afed6b42bcd8ca35022d6592a6f11c0e815946a /scripts/Makefile.thinlto
parentperf config: Move perf_config__set_variable() to util/config.c (diff)
perf config: Make perf_etc_perfconfig() never return NULL
perf_etc_perfconfig() returns what system_path() gives, and that allocates, so on failure every caller dereferenced NULL, the pre-existing ones in perf_config_set__init() and in the daemon included. For the usual absolute ETC_PERFCONFIG system_path() just returns a strdup of it, so use ETC_PERFCONFIG itself when that fails. Assisted-by: LLM Reviewed-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions