diff mbox

[v2] linux-generic: init: add call to odp_shm_init_local

Message ID 1419863564-4130-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit 90dc69dacad64967901e7fb8860c18fff2893419
Headers show

Commit Message

Mike Holmes Dec. 29, 2014, 2:32 p.m. UTC
odp_init_local did not call shm init.

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
v2 improve description

 platform/linux-generic/odp_init.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Maxim Uvarov Dec. 30, 2014, 9:37 a.m. UTC | #1
Reviewed-by:  Maxim Uvarov <maxim.uvarov@linaro.org>

On 12/29/2014 05:32 PM, Mike Holmes wrote:
> odp_init_local did not call shm init.
>
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
> v2 improve description
>
>   platform/linux-generic/odp_init.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
> 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;
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;