diff options
| author | Denis Efremov <[email protected]> | 2020-06-01 16:28:14 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-06-01 21:48:33 +0000 |
| commit | bb2359f4dbe98e8863b4e885fc09269ef4682ec3 (patch) | |
| tree | 0a444c6c75337492ed4b11c448e283af7856f026 /net/core/sock.c | |
| parent | Merge branch 'fix-ktls-with-sk_skb_verdict' (diff) | |
| download | kernel-bb2359f4dbe98e8863b4e885fc09269ef4682ec3.tar.gz kernel-bb2359f4dbe98e8863b4e885fc09269ef4682ec3.zip | |
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: cb4d03ab499d ("bpf: Add generic support for lookup batch op")
Signed-off-by: Denis Efremov <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions
