bpf: Use bpf_map_area_free instread of kvfree
authorYafang Shao <laoar.shao@gmail.com>
Wed, 10 Aug 2022 15:18:27 +0000 (15:18 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Aug 2022 18:48:44 +0000 (11:48 -0700)
commit8f58ee54c2eae790f50c51dfa64a153601451f08
tree32a38c0218cf709f320c21509475b4bd90c0cab9
parent083818156d1e98f22b1ac612a3957bc553e7ba57
bpf: Use bpf_map_area_free instread of kvfree

bpf_map_area_alloc() should be paired with bpf_map_area_free().

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/r/20220810151840.16394-3-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/ringbuf.c