Message ID | 1419863564-4130-1-git-send-email-mike.holmes@linaro.org |
---|---|
State | Accepted |
Commit | 90dc69dacad64967901e7fb8860c18fff2893419 |
Headers | show |
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 --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;
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(+)