diff options
author | Lam Thai <lamthai@arista.com> | 2022-08-25 01:59:00 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-08-25 21:43:08 +0300 |
commit | 7184aef9c0f7a81db8fd18d183ee42481d89bf35 (patch) | |
tree | e762daee9dd5f24fc9f9465a757c215861ce9825 /scripts | |
parent | eef3c3d3373641b01c65af630d5e003cbabe6abe (diff) | |
download | linux-7184aef9c0f7a81db8fd18d183ee42481d89bf35.tar.xz |
bpftool: Fix a wrong type cast in btf_dumper_int
When `data` points to a boolean value, casting it to `int *` is problematic
and could lead to a wrong value being passed to `jsonw_bool`. Change the
cast to `bool *` instead.
Fixes: b12d6ec09730 ("bpf: btf: add btf print functionality")
Signed-off-by: Lam Thai <lamthai@arista.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20220824225859.9038-1-lamthai@arista.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions