diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-03-05 18:25:36 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-03-07 00:21:00 +0300 |
commit | b8f7d86b5849ea7bb84bddc0345a3799049764d4 (patch) | |
tree | f3ac032daf23ab680f8714a1e3454af44f340e9e /Documentation/trace/kprobetrace.rst | |
parent | befa09b61f8bf1d7c34b8e6405f08d804640573c (diff) | |
download | linux-b8f7d86b5849ea7bb84bddc0345a3799049764d4.tar.xz |
perf data: Force perf_data__open|close zero data->file.path
Making sure the data->file.path is zeroed on perf_data__open error path
and in perf_data__close, so we don't double free it in case someone call
it twice.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Cc: Nageswara R Sastry <nasastry@in.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Link: http://lkml.kernel.org/r/20190305152536.21035-9-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'Documentation/trace/kprobetrace.rst')
0 files changed, 0 insertions, 0 deletions