]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, test_run: Use kvfree() for memory allocated with kvmalloc()
authorYihao Han <hanyihao@vivo.com>
Thu, 10 Mar 2022 09:28:27 +0000 (01:28 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 10 Mar 2022 15:20:02 +0000 (16:20 +0100)
commit0646177255f3059a5dc6529dcf44d75f2ea5d8dc
tree69c4d5c219b0a343f646f9451b2ea97227545d9b
parent57122edfe310dae147e6c9eed6177e15010ae7bc
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: c23b8c0ec3f7 ("bpf: Add "live packet" mode for XDP in BPF_PROG_RUN")
Signed-off-by: Yihao Han <hanyihao@vivo.com>
Signed-off-by: Daniel 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
net/bpf/test_run.c