diff options
| author | Toke Høiland-Jørgensen <[email protected]> | 2022-03-10 11:02:28 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-03-10 15:12:10 +0000 |
| commit | eecbfd976e8617125c69e4b3efc89fe34eac7bb1 (patch) | |
| tree | af9c0519461270ad0c8134e37c5c6831e7d8fb31 /tools/bpf/bpftool/prog.c | |
| parent | bpftool: Restore support for BPF offload-enabled feature probing (diff) | |
| download | kernel-eecbfd976e8617125c69e4b3efc89fe34eac7bb1.tar.gz kernel-eecbfd976e8617125c69e4b3efc89fe34eac7bb1.zip | |
bpf: Initialise retval in bpf_prog_test_run_xdp()
The kernel test robot pointed out that the newly added
bpf_test_run_xdp_live() runner doesn't set the retval in the caller (by
design), which means that the variable can be passed unitialised to
bpf_test_finish(). Fix this by initialising the variable properly.
Fixes: b530e9e1063e ("bpf: Add "live packet" mode for XDP in BPF_PROG_RUN")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
