]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/libbpf: signedness bug in btf_dedup_ref_type()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Feb 2019 18:06:47 +0000 (21:06 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 28 Feb 2019 23:56:06 +0000 (00:56 +0100)
commit3d8669e63751b7a3f8fac109cd350c5f6c14e3e1
tree04497c7d1d7d77256cbec1afa54d4dc55ac2b510
parent74b388190874ecf718e488825e9268d5ff8f2631
tools/libbpf: signedness bug in btf_dedup_ref_type()

The "ref_type_id" variable needs to be signed for the error handling
to work.

Fixes: d5caef5b5655 ("btf: add BTF types deduplication algorithm")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/btf.c