diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-06 02:45:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-06 02:45:07 +0000 |
commit | 1492ba591f4e0c7948e0f4282ad78ed5126e6805 (patch) | |
tree | b3f5d9bff66de0c46fadc6ffed8c76141c08fd5a /libpfm-initp.patch | |
parent | 9be314b80deae7e4118e3a90e49283af711e4f72 (diff) |
automatic import of libpfmopeneuler24.03_LTS
Diffstat (limited to 'libpfm-initp.patch')
-rw-r--r-- | libpfm-initp.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libpfm-initp.patch b/libpfm-initp.patch new file mode 100644 index 0000000..4eeb498 --- /dev/null +++ b/libpfm-initp.patch @@ -0,0 +1,19 @@ +commit 75d8bb06f6ea0d7a8edf8e080c7ea6d434d598ff +Author: William Cohen <wcohen@redhat.com> +Date: Fri Apr 14 16:07:07 2023 -0400 + + Make sure that p is set to a known value before using. + +diff --git a/lib/pfmlib_perf_event_pmu.c b/lib/pfmlib_perf_event_pmu.c +index 637c5b1..8f7d7d1 100644 +--- a/lib/pfmlib_perf_event_pmu.c ++++ b/lib/pfmlib_perf_event_pmu.c +@@ -361,7 +361,7 @@ gen_tracepoint_table(void) + { + DIR *dir1, *dir2; + struct dirent *d1, *d2; +- perf_event_t *p; ++ perf_event_t *p = NULL; + perf_umask_t *um; + char d2path[MAXPATHLEN]; + char idpath[MAXPATHLEN]; |