diff mbox series

[v1,2/2] helper: add missing pool param inits

Message ID 1500580816-25415-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/2] linux-gen: ishm fix defining directory for shm files | expand

Commit Message

Github ODP bot July 20, 2017, 8 p.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 83 (muvarov:master_shm_dir_fix)
 ** https://github.com/Linaro/odp/pull/83
 ** Patch: https://github.com/Linaro/odp/pull/83.patch
 ** Base sha: 95ba4b394009d92c29c2e22f0776e90bb4c6edec
 ** Merge commit sha: a7d94443cbc414cd68dc576b3e3757f65aa9b789
 **/
 helper/cuckootable.c   | 1 +
 helper/iplookuptable.c | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/helper/cuckootable.c b/helper/cuckootable.c
index 0d46300e..32800911 100644
--- a/helper/cuckootable.c
+++ b/helper/cuckootable.c
@@ -240,6 +240,7 @@  odph_cuckoo_table_create(
 	if (pool != ODP_POOL_INVALID)
 		odp_pool_destroy(pool);
 
+	odp_pool_param_init(&param);
 	param.type = ODP_POOL_BUFFER;
 	param.buf.size = kv_entry_size;
 	param.buf.align = ODP_CACHE_LINE_SIZE;
diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c
index 37d31e36..ac7d0587 100644
--- a/helper/iplookuptable.c
+++ b/helper/iplookuptable.c
@@ -192,6 +192,7 @@  cache_alloc_new_pool(
 	uint32_t size = 0, num = 0;
 
 	/* Create new pool (new free buffers). */
+	odp_pool_param_init(&param);
 	param.type = ODP_POOL_BUFFER;
 	param.buf.align = ODP_CACHE_LINE_SIZE;
 	if (type == CACHE_TYPE_SUBTREE) {