diff options
author | Martin Kelly <[email protected]> | 2023-09-25 14:50:32 -0700 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2023-09-25 16:22:42 -0700 |
commit | 4448f64c549c28175dd9af4e8f9a2e0c62ef6d38 (patch) | |
tree | a99117dde3b9d965c92594e16f65b6c3632060ca /net/lapb/lapb_subr.c | |
parent | 831916fb93d4b99bd5f18b8530708b88d901a522 (diff) |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions