We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceee239 commit 9668f87Copy full SHA for 9668f87
kernel/bpf/lpm_trie.c
@@ -315,7 +315,7 @@ static long trie_update_elem(struct bpf_map *map,
315
void *_key, void *value, u64 flags)
316
{
317
struct lpm_trie *trie = container_of(map, struct lpm_trie, map);
318
- struct lpm_trie_node *node, *im_node = NULL, *new_node = NULL;
+ struct lpm_trie_node *node, *im_node, *new_node = NULL;
319
struct lpm_trie_node *free_node = NULL;
320
struct lpm_trie_node __rcu **slot;
321
struct bpf_lpm_trie_key_u8 *key = _key;
@@ -449,9 +449,7 @@ static long trie_update_elem(struct bpf_map *map,
449
if (ret) {
450
if (new_node)
451
trie->n_entries--;
452
-
453
kfree(new_node);
454
- kfree(im_node);
455
}
456
457
spin_unlock_irqrestore(&trie->lock, irq_flags);
0 commit comments