Thread (3 messages) 3 messages, 3 authors, 2017-01-24

Re: [PATCH net-next] bpf, lpm: fix kfree of im_node in trie_update_elem

flat view

From: Alexei Starovoitov <hidden>
Date: 2017-01-24 00:37:14

On Tue, Jan 24, 2017 at 01:26:46AM +0100, Daniel Borkmann wrote:
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>
Great catch.
Acked-by: Alexei Starovoitov <ast@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help