diff options
| author | Yihao Han <[email protected]> | 2022-03-10 09:28:27 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-03-10 15:20:02 +0000 |
| commit | 743bec1b78af174f588956ffbdb9bca4348e3eaf (patch) | |
| tree | 69c4d5c219b0a343f646f9451b2ea97227545d9b /tools/bpf/bpftool/prog.c | |
| parent | bpf: Initialise retval in bpf_prog_test_run_xdp() (diff) | |
| download | kernel-743bec1b78af174f588956ffbdb9bca4348e3eaf.tar.gz kernel-743bec1b78af174f588956ffbdb9bca4348e3eaf.zip | |
bpf, test_run: Use kvfree() for memory allocated with kvmalloc()
It is allocated with kvmalloc(), the corresponding release function
should not be kfree(), use kvfree() instead.
Generated by: scripts/coccinelle/api/kfree_mismatch.cocci
Fixes: b530e9e1063e ("bpf: Add "live packet" mode for XDP in BPF_PROG_RUN")
Signed-off-by: Yihao Han <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Cc: Toke Høiland-Jørgensen <[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
