diff options
author | Alexei Starovoitov <ast@kernel.org> | 2021-12-12 03:08:19 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-12 03:08:19 +0100 |
commit | f18a499799dd0f0fdd98cf72d98d3866ce9ac60e (patch) | |
tree | a8e5852788ed516cf435947dbf6e81d38efc034f /mm/util.c | |
parent | bpf: Use kmemdup() to replace kmalloc + memcpy (diff) | |
download | linux-f18a499799dd0f0fdd98cf72d98d3866ce9ac60e.tar.xz linux-f18a499799dd0f0fdd98cf72d98d3866ce9ac60e.zip |
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: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions