Skip to content
Commit 64165ddf authored by Mehrdad Arshad Rad's avatar Mehrdad Arshad Rad Committed by Daniel Borkmann
Browse files

libbpf: Fix lookup_and_delete_elem_flags error reporting



Fix bpf_map_lookup_and_delete_elem_flags() to pass the return code through
libbpf_err_errno() as we do similarly in bpf_map_lookup_and_delete_elem().

Fixes: f12b6543 ("libbpf: Streamline error reporting for low-level APIs")
Signed-off-by: default avatarMehrdad Arshad Rad <arshad.rad@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20211104171354.11072-1-arshad.rad@gmail.com
parent e41ac202
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment