mem_name was built, but not used when memory is allocated.

Fixes: c3e12e0f0354 ("fib: add dataplane algorithm for IPv6")
Signed-off-by: Andrew Rybchenko <[email protected]>
---
 lib/fib/trie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/fib/trie.c b/lib/fib/trie.c
index fa5d9ec6b0..cd61446dd3 100644
--- a/lib/fib/trie.c
+++ b/lib/fib/trie.c
@@ -678,7 +678,7 @@ trie_create(const char *name, int socket_id,
        num_tbl8 = conf->trie.num_tbl8;
 
        snprintf(mem_name, sizeof(mem_name), "DP_%s", name);
-       dp = rte_zmalloc_socket(name, sizeof(struct rte_trie_tbl) +
+       dp = rte_zmalloc_socket(mem_name, sizeof(struct rte_trie_tbl) +
                TRIE_TBL24_NUM_ENT * (1 << nh_sz) + sizeof(uint32_t),
                RTE_CACHE_LINE_SIZE, socket_id);
        if (dp == NULL) {
-- 
2.47.3

Reply via email to