Skip to content
Commit bb2359f4 authored by Denis Efremov's avatar Denis Efremov Committed by Alexei Starovoitov
Browse files

bpf: Change kvfree to kfree in generic_map_lookup_batch()



buf_prevkey in generic_map_lookup_batch() is allocated with
kmalloc(). It's safe to free it with kfree().

Fixes: cb4d03ab ("bpf: Add generic support for lookup batch op")
Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarSong Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200601162814.17426-1-efremov@linux.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 7b805819
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