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)
commit275517ff452a535da5eef25b1c22e53fc50b0a12
tree575a22cc0151a9fae57ebd2c23f3c58f77b20b02
parent65726b5b7efae718391752ae8bb85b9843fd83f4
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