commit | d140199af510ad4749dc5e38b7922135258ba5fd | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <daniel@iogearbox.net> | Tue Jan 24 01:26:46 2017 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 23 21:17:35 2017 -0500 |
tree | 808db68eb4959518023d42be3657e90162f28457 | |
parent | 2acc76cbb7b7ad4f1e35d6c1d973f8cba1dde0bc [diff] |
bpf, lpm: fix kfree of im_node in trie_update_elem We need to initialize im_node to NULL, otherwise in case of error path it gets passed to kfree() as uninitialized pointer. Fixes: b95a5c4db09b ("bpf: add a longest prefix match trie map implementation") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>