diff options
author | Martin Kelly <martin.kelly@crowdstrike.com> | 2023-09-25 23:50:32 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-09-26 01:22:42 +0200 |
commit | 4448f64c549c28175dd9af4e8f9a2e0c62ef6d38 (patch) | |
tree | a99117dde3b9d965c92594e16f65b6c3632060ca /.clang-format | |
parent | Merge branch 'libbpf: Support symbol versioning for uprobe' (diff) | |
download | linux-4448f64c549c28175dd9af4e8f9a2e0c62ef6d38.tar.xz linux-4448f64c549c28175dd9af4e8f9a2e0c62ef6d38.zip |
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 '.clang-format')
0 files changed, 0 insertions, 0 deletions