git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/l2fwd-crypto: fix AEAD key setting
[dpdk.git]
/
lib
/
librte_hash
/
rte_fbk_hash.c
diff --git
a/lib/librte_hash/rte_fbk_hash.c
b/lib/librte_hash/rte_fbk_hash.c
index
356ddfe
..
55c9f35
100644
(file)
--- a/
lib/librte_hash/rte_fbk_hash.c
+++ b/
lib/librte_hash/rte_fbk_hash.c
@@
-140,8
+140,11
@@
rte_fbk_hash_create(const struct rte_fbk_hash_params *params)
if (strncmp(params->name, ht->name, RTE_FBK_HASH_NAMESIZE) == 0)
break;
}
if (strncmp(params->name, ht->name, RTE_FBK_HASH_NAMESIZE) == 0)
break;
}
- if (te != NULL)
+ ht = NULL;
+ if (te != NULL) {
+ rte_errno = EEXIST;
goto exit;
goto exit;
+ }
te = rte_zmalloc("FBK_HASH_TAILQ_ENTRY", sizeof(*te), 0);
if (te == NULL) {
te = rte_zmalloc("FBK_HASH_TAILQ_ENTRY", sizeof(*te), 0);
if (te == NULL) {
@@
-226,4
+229,3
@@
rte_fbk_hash_free(struct rte_fbk_hash_table *ht)
rte_free(ht);
rte_free(te);
}
rte_free(ht);
rte_free(te);
}
-