Skip to content
Commit f18a4997 authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

bpf: Silence coverity false positive warning.



Coverity issued the following warning:
6685            cands = bpf_core_add_cands(cands, main_btf, 1);
6686            if (IS_ERR(cands))
>>>     CID 1510300:    (RETURN_LOCAL)
>>>     Returning pointer "cands" which points to local variable "local_cand".
6687                    return cands;

It's a false positive.
Add ERR_CAST() to silence it.

Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 4674f210
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment