]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Suppress 'passing zero to PTR_ERR' warning
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 21 May 2022 13:26:20 +0000 (18:56 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 23 May 2022 21:16:43 +0000 (23:16 +0200)
commit0e5fbde1b922ee6afaab87c2c31fd3d22144c41b
tree18eefec3dab4140b090759719590bb325b45272f
parent4bd39d9dea5c295f81f8589d2eacd42c491b7456
bpf: Suppress 'passing zero to PTR_ERR' warning

Kernel Test Robot complains about passing zero to PTR_ERR for the said
line, suppress it by using PTR_ERR_OR_ZERO.

Fixes: 9d1cffdbd964 ("bpf: Allow storing referenced kptr in map")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220521132620.1976921-1-memxor@gmail.com
kernel/bpf/verifier.c