]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Avoid storing modifier to info->btf_id
authorMartin KaFai Lau <kafai@fb.com>
Thu, 9 Jan 2020 00:34:56 +0000 (16:34 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 Jan 2020 16:46:18 +0000 (08:46 -0800)
commit8344e0c8b420f824878d9661fc0dc7dab18cef50
tree575a22cc0151a9fae57ebd2c23f3c58f77b20b02
parent69d0982849ea0f6e88d6ba0dfd02357a922d8b48
bpf: Avoid storing modifier to info->btf_id

info->btf_id expects the btf_id of a struct, so it should
store the final result after skipping modifiers (if any).

It also takes this chanace to add a missing newline in one of the
bpf_log() messages.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200109003456.3855176-1-kafai@fb.com
kernel/bpf/btf.c