diff options
author | Martin Kelly <martin.kelly@crowdstrike.com> | 2023-09-26 00:50:32 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-09-26 02:22:42 +0300 |
commit | 4448f64c549c28175dd9af4e8f9a2e0c62ef6d38 (patch) | |
tree | a99117dde3b9d965c92594e16f65b6c3632060ca /tools/perf/scripts/python/gecko.py | |
parent | 831916fb93d4b99bd5f18b8530708b88d901a522 (diff) | |
download | linux-4448f64c549c28175dd9af4e8f9a2e0c62ef6d38.tar.xz |
libbpf: Refactor cleanup in ring_buffer__add
Refactor the cleanup code in ring_buffer__add to use a unified err_out
label. This reduces code duplication, as well as plugging a potential
leak if mmap_sz != (__u64)(size_t)mmap_sz (currently this would miss
unmapping tmp because ringbuf_unmap_ring isn't called).
Signed-off-by: Martin Kelly <martin.kelly@crowdstrike.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230925215045.2375758-2-martin.kelly@crowdstrike.com
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions