diff options
author | Gustavo A. R. Silva <[email protected]> | 2019-04-08 12:33:55 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-04-16 11:26:43 -0300 |
commit | 14c9b31a925a9f5c647523a12e2b575b97c0aa47 (patch) | |
tree | 571d7821a18120fc9e5aeea715b1816b57ee508a /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 9d5dcc93a6ddfc78124f006ccd3637ce070ef2fc (diff) |
perf header: Fix lock/unlock imbalances when processing BPF/BTF info
Fix lock/unlock imbalances by refactoring the code a bit and adding
calls to up_write() before return.
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Acked-by: Song Liu <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Addresses-Coverity-ID: 1444315 ("Missing unlock")
Addresses-Coverity-ID: 1444316 ("Missing unlock")
Fixes: a70a1123174a ("perf bpf: Save BTF information as headers to perf.data")
Fixes: 606f972b1361 ("perf bpf: Save bpf_prog_info information as headers to perf.data")
Link: http://lkml.kernel.org/r/20190408173355.GA10501@embeddedor
[ Simplified the exit path to have just one up_write() + return ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions