From patchwork Fri Oct 3 12:21:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 38314 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 84A9C201F1 for ; Fri, 3 Oct 2014 12:21:56 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id y10sf608237wgg.10 for ; Fri, 03 Oct 2014 05:21:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=GhT/76zYv/ZhgYUkzaQtOyhRPYxrIKArYpNAkgpOBso=; b=NAj7Pmbi238KutX5XIIHK0Ob3z6m0BL2p+jBoOb85kyWvjql2hn3b0ixGnPnLRDkhX rAYVhqukyBLtEQbhPr1hODk2Gvv9SMs09v/FTCMTvwcrT/qOFAbVauJHQksAlGA/5jOo RqyY9yDTEOZfoj4fenyQ3t/hokQmlhX1mz0Ynbc1c/IGL+9z8oGNOqX9TC15yq94/elM UoqY+97BIiP82aAVTMkEPVSBERTbMncTXsymhYcdR4QCN8TBBns9RmLPRESZwBBh+Tcn Uy9kRR+WVXghxs7tVi0T+XHKP1xB/JPGM8KbaR6yZ9Kdj36M++eWldphFGDgbgS/lB8i joGg== X-Gm-Message-State: ALoCoQnTyO3/XIgf2C5LKo97UAia+QO6g/bgHqmH0zycx0GFZTcKJgcuKXsLvt+NU8o1p7f361Bs X-Received: by 10.112.145.136 with SMTP id su8mr936369lbb.9.1412338915711; Fri, 03 Oct 2014 05:21:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.66 with SMTP id o2ls381709laj.8.gmail; Fri, 03 Oct 2014 05:21:55 -0700 (PDT) X-Received: by 10.152.19.167 with SMTP id g7mr5475814lae.31.1412338915442; Fri, 03 Oct 2014 05:21:55 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx.google.com with ESMTPS id k3si10886327lag.80.2014.10.03.05.21.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Oct 2014 05:21:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id b6so916921lbj.3 for ; Fri, 03 Oct 2014 05:21:55 -0700 (PDT) X-Received: by 10.112.163.103 with SMTP id yh7mr5157339lbb.73.1412338915017; Fri, 03 Oct 2014 05:21:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp216268lbb; Fri, 3 Oct 2014 05:21:54 -0700 (PDT) X-Received: by 10.140.31.119 with SMTP id e110mr5038534qge.2.1412338913827; Fri, 03 Oct 2014 05:21:53 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id o9si11612831qay.18.2014.10.03.05.21.51 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 03 Oct 2014 05:21:52 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xa1rr-00037c-13; Fri, 03 Oct 2014 12:21:51 +0000 Received: from mail-qg0-f53.google.com ([209.85.192.53]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xa1rl-00037X-Vs for lng-odp@lists.linaro.org; Fri, 03 Oct 2014 12:21:45 +0000 Received: by mail-qg0-f53.google.com with SMTP id a108so838179qge.12 for ; Fri, 03 Oct 2014 05:21:40 -0700 (PDT) X-Received: by 10.224.79.67 with SMTP id o3mr2865427qak.103.1412338900752; Fri, 03 Oct 2014 05:21:40 -0700 (PDT) Received: from fedora1.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id e64sm5563450qga.34.2014.10.03.05.21.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Oct 2014 05:21:40 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 3 Oct 2014 08:21:33 -0400 Message-Id: <1412338893-47487-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] odp_linux.c:replace ODP_ERR with ODP_ABORT X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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 Reviewed-by: Anders Roxell --- platform/linux-generic/odp_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_linux.c b/platform/linux-generic/odp_linux.c index 9251ec9..f5d5977 100644 --- a/platform/linux-generic/odp_linux.c +++ b/platform/linux-generic/odp_linux.c @@ -75,7 +75,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;