From patchwork Thu Dec 3 12:58:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57651 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp3479089lbb; Thu, 3 Dec 2015 04:58:53 -0800 (PST) X-Received: by 10.140.195.18 with SMTP id q18mr11370348qha.44.1449147532914; Thu, 03 Dec 2015 04:58:52 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j64si8459191qgj.115.2015.12.03.04.58.52; Thu, 03 Dec 2015 04:58:52 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 71A0D62C9A; Thu, 3 Dec 2015 12:58:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3F41961966; Thu, 3 Dec 2015 12:58:49 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2A28961B23; Thu, 3 Dec 2015 12:58:47 +0000 (UTC) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by lists.linaro.org (Postfix) with ESMTPS id 3E54C6194F for ; Thu, 3 Dec 2015 12:58:46 +0000 (UTC) Received: by lfs39 with SMTP id 39so86246366lfs.3 for ; Thu, 03 Dec 2015 04:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=aAyKtTcfywF4hbBldJFwp9gprcI1wHqwd4DVGZVcRyY=; b=xhB/xZkFStOL77VTC61vcSVl6K3XmHBYWOSLxth52nHnYISveGwUnKo3bPuoreYN5A 9b9GE3Lx8FJu9CI9rOIHfZUH8TY6j1Q8lZjc7qVotNfPABnl7lL/rsiUNkwcNnnRvgmE bHTfHTnH7eKj4sXP+d6regIuk98d+MxuMJptSUe9jdOB7ftL9+hUFYL5FhAKwYymIJGw /KXvTwqt+9LWNMTrFQK3ko5C8PeGm5pWViCDkdb/a9L+dHH28On765sCDborNTfqMZzJ f/KaYAkPtQusdp//xCf6Gh2ejnquuoBM3iTd1g+xkTDzJ/voPJ9IC1JjZQiL8ZqjOan+ aLWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aAyKtTcfywF4hbBldJFwp9gprcI1wHqwd4DVGZVcRyY=; b=VSTqmqm9kypzcJgDVLQFP4F1xiih5qbGu7VP6MezCJjv1992U6UyjhAFUjqBDFJT9Y hNsOnOxQk5IOmjQLNeiBUo0Z7Ec5pZbntUxcUoCPrIK0aXwHnqK2BeBhVaZQOIObOR3Q w2DbpiPYwgovBsa6wwmk9ye4DKsQH/SS27byAyCr3Z1oQsoETiw3GUbYKEFMserHCF7o DbOyCiYbhevCnp4hC8XmvlHIcQGLs+7AIi1bC2ZT6CWPb5u3qZf6aTfvXs8r882E3lR4 SP5JiFaGycPd78DV7kbJbG+8tg3hXVUdO9jrqBFOIAQLTsQpLYnDYiq7Pa3sU4+NzefA HuTg== X-Gm-Message-State: ALoCoQnN0nK+jDqEYoU3+OmMSJd51sS1tPfnlz6LtwBQymioJNReqRL+YVwZKllFfDycQQxebE7/ X-Received: by 10.25.162.144 with SMTP id l138mr5566774lfe.30.1449147525097; Thu, 03 Dec 2015 04:58:45 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id us1sm1356725lbc.25.2015.12.03.04.58.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Dec 2015 04:58:44 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 3 Dec 2015 14:58:38 +0200 Message-Id: <1449147518-22437-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: init: return -1 when system_info is failed X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Signed-off-by: Ivan Khoronzhuk --- platform/linux-generic/odp_init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index 5e19d86..087bfdf 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -25,7 +25,10 @@ int odp_init_global(const odp_init_t *params, } - odp_system_info_init(); + if (odp_system_info_init()) { + ODP_ERR("ODP shm init failed.\n"); + return -1; + } if (odp_shm_init_global()) { ODP_ERR("ODP shm init failed.\n");