]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Update API functions usage to check error
authorGrant Seltzer <grantseltzer@gmail.com>
Wed, 20 Apr 2022 16:12:25 +0000 (12:12 -0400)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 21 Apr 2022 14:28:25 +0000 (16:28 +0200)
commit1dff5feffa827e85faea5ed29b5d6edf5cde8a4f
tree9c434dec59f4683fbdae6672ae3d0cb35d6fb043
parent7794c18a363673be3087349a58d926eed75c60b1
libbpf: Update API functions usage to check error

This updates usage of the following API functions within
libbpf so their newly added error return is checked:

- bpf_program__set_expected_attach_type()
- bpf_program__set_type()

Signed-off-by: Grant Seltzer <grantseltzer@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220420161226.86803-2-grantseltzer@gmail.com
tools/lib/bpf/libbpf.c