diff mbox

linux-generic: init: add call to odp_shm_init_local

Message ID 1419824843-16026-1-git-send-email-mike.holmes@linaro.org
State Superseded
Headers show

Commit Message

Mike Holmes Dec. 29, 2014, 3:47 a.m. UTC
Thread init did not call shm init.

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 platform/linux-generic/odp_init.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c
index 7210430..4d0aa07 100644
--- a/platform/linux-generic/odp_init.c
+++ b/platform/linux-generic/odp_init.c
@@ -70,6 +70,11 @@  int odp_term_global(void)
 
 int odp_init_local(void)
 {
+	if (odp_shm_init_local()) {
+		ODP_ERR("ODP shm local init failed.\n");
+		return -1;
+	}
+
 	if (odp_thread_init_local()) {
 		ODP_ERR("ODP thread local init failed.\n");
 		return -1;