bpf: sockmap, fix double-free
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 17 May 2018 14:11:02 +0000 (09:11 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 17 May 2018 20:44:49 +0000 (22:44 +0200)
commita78622932c27e8ec33e5ba180f3d2e87fb806b28
tree16ba4fb1fc64e9336d57c11cde5cbc3b728b9966
parent0e4364560361d57e8cd873a8990327f3471d7d8a
bpf: sockmap, fix double-free

`e' is being freed twice.

Fix this by removing one of the kfree() calls.

Addresses-Coverity-ID: 1468983 ("Double free")
Fixes: 81110384441a ("bpf: sockmap, add hash map support")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/sockmap.c