]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Always raise reference in btf_get_module_btf
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Thu, 17 Mar 2022 11:59:51 +0000 (17:29 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 19 Mar 2022 18:37:13 +0000 (11:37 -0700)
commitfb9a8003fafc65e25ccb21a05ba9f7c81f3cb0bd
tree07a9b38eabf57272779788e72d9c5c8665ab6d62
parentb919de06c0d7ec36148f84edd65299c5fd4077a4
bpf: Always raise reference in btf_get_module_btf

Align it with helpers like bpf_find_btf_id, so all functions returning
BTF in out parameter follow the same rule of raising reference
consistently, regardless of module or vmlinux BTF.

Adjust existing callers to handle the change accordinly.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220317115957.3193097-10-memxor@gmail.com
kernel/bpf/btf.c