aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorHangbin Liu <[email protected]>2020-10-06 10:13:43 +0800
committerAlexei Starovoitov <[email protected]>2020-10-06 11:10:20 -0700
commita0f2b7acb4b1d29127ff99c714233b973afd1411 (patch)
treeba743ced8c89cd6f1ed8a44f8b443b2d79aaef6c /tools/perf/scripts/python/exported-sql-viewer.py
parentdca4121cdc48027320c95cbce8f5e81160aa4afe (diff)
libbpf: Close map fd if init map slots failed
Previously we forgot to close the map fd if bpf_map_update_elem() failed during map slot init, which will leak map fd. Let's move map slot initialization to new function init_map_slots() to simplify the code. And close the map fd if init slot failed. Reported-by: Andrii Nakryiko <[email protected]> Signed-off-by: Hangbin Liu <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions