diff options
author | Mike Holmes <mike.holmes@linaro.org> | 2014-10-03 08:21:33 -0400 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-10-08 20:54:27 +0400 |
commit | 1e273a210cbf5a591633954b04b8ac8a12a5ca1f (patch) | |
tree | 26af5e7f1df880a69802005a3aaba5424c4230d4 /platform | |
parent | b3a061c9eb367ea7a1efafee066f73455189977e (diff) |
odp_linux.c:replace ODP_ERR with ODP_ABORT
The test for a NULL on the start_args pointer returned from malloc
only called ODP_ERR and so start_args is used when it is NULL
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-generic/odp_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linux-generic/odp_linux.c b/platform/linux-generic/odp_linux.c index cba6637d2..11f76c9e9 100644 --- a/platform/linux-generic/odp_linux.c +++ b/platform/linux-generic/odp_linux.c @@ -77,7 +77,7 @@ void odph_linux_pthread_create(odph_linux_pthread_t *thread_tbl, int num, start_args = malloc(sizeof(odp_start_args_t)); if (start_args == NULL) - ODP_ERR("Malloc failed"); + ODP_ABORT("Malloc failed"); memset(start_args, 0, sizeof(odp_start_args_t)); start_args->start_routine = start_routine; |