diff options
| author | Daniel Borkmann <[email protected]> | 2017-01-24 00:26:46 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-01-24 02:17:35 +0000 |
| commit | d140199af510ad4749dc5e38b7922135258ba5fd (patch) | |
| tree | 808db68eb4959518023d42be3657e90162f28457 /security/selinux/hooks.c | |
| parent | Merge branch 'bpf-lpm' (diff) | |
| download | kernel-d140199af510ad4749dc5e38b7922135258ba5fd.tar.gz kernel-d140199af510ad4749dc5e38b7922135258ba5fd.zip | |
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 <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
