Skip to content
Commit 743bec1b authored by Yihao Han's avatar Yihao Han Committed by Daniel Borkmann
Browse files

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: b530e9e1 ("bpf: Add "live packet" mode for XDP in BPF_PROG_RUN")
Signed-off-by: default avatarYihao Han <hanyihao@vivo.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Cc: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20220310092828.13405-1-hanyihao@vivo.com
parent eecbfd97
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