]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix type compatibility check copy-paste error
authorAndrii Nakryiko <andriin@fb.com>
Fri, 21 Aug 2020 22:56:53 +0000 (15:56 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 24 Aug 2020 21:50:00 +0000 (14:50 -0700)
commit554e9ba0d8bbad6eb8b4ecfe6ee0abee0fdc5544
tree52992b015c1b760af63ef5cdcb524b142de11f46
parent3fc07942b971968c133a7a9ba9f47f1281bc5379
libbpf: Fix type compatibility check copy-paste error

Fix copy-paste error in types compatibility check. Local type is accidentally
used instead of target type for the very first type check strictness check.
This can result in potentially less strict candidate comparison. Fix the
error.

Fixes: 3c5c73e1c079 ("libbpf: Implement type-based CO-RE relocations support")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200821225653.2180782-1-andriin@fb.com
tools/lib/bpf/libbpf.c