diff options
author | Wang Qing <[email protected]> | 2020-11-07 15:45:44 +0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-11-09 22:37:19 +0100 |
commit | abbaa433de07076fb8ef524b77ce55d94bad5fc5 (patch) | |
tree | e26c7b6aefb6fd4ef8131871b689c0372d023734 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 197afc631413d96dc60acfc7970bdd4125d38cd3 (diff) |
bpf: Fix passing zero to PTR_ERR() in bpf_btf_printf_prepare
There is a bug when passing zero to PTR_ERR() and return.
Fix the smatch error.
Fixes: c4d0bfb45068 ("bpf: Add bpf_snprintf_btf helper")
Signed-off-by: Wang Qing <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions