From patchwork Mon Dec 21 11:18:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 58805 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp2532980lbb; Mon, 21 Dec 2015 03:26:23 -0800 (PST) X-Received: by 10.140.92.84 with SMTP id a78mr11791600qge.10.1450697183636; Mon, 21 Dec 2015 03:26:23 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e206si29015583qkb.64.2015.12.21.03.26.22; Mon, 21 Dec 2015 03:26:23 -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 Received: by lists.linaro.org (Postfix, from userid 109) id CA98E6172C; Mon, 21 Dec 2015 11:26:22 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=iB9pU+7q; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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 26B2E615C9; Mon, 21 Dec 2015 11:26:19 +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 360B3615C9; Mon, 21 Dec 2015 11:26:08 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by lists.linaro.org (Postfix) with ESMTPS id E555C6172E for ; Mon, 21 Dec 2015 11:18:57 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id z124so104062622lfa.3 for ; Mon, 21 Dec 2015 03:18:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zNIpal1hf6gt9LQLNps88kBlc7n1OLqcdwuMnEdb22g=; b=iB9pU+7qjkpevOPJaMHSDU70mCnKhXdC1UiaLUauPbZFKx3AI6hJsJrxYZDQ8QT5zD raPJ6tW2sgEiU7uLQNmvyurOevK6qWtzaoumoUFffiy9roHAqKCA0h4l5t//CXrGr/oO CquGXr1xWcEkhan8j9ayuEJrN+iN2tklwYMQw= 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=zNIpal1hf6gt9LQLNps88kBlc7n1OLqcdwuMnEdb22g=; b=id071OiK6HhiLhF+bdwlBwoV9DYYedjKS+MXkl11K+YKgbhrmkfYitwu5vpEtoZgpj 88ggUHnmvONL67viJ98DkYO9oISskFF1wKfJjmJ3DvWC8i+UVC+65PH4rBEI4nW9rLfn FIfLb2iMsnJX8GuXrpaRgBgsgnh7pys/aSck/Vs1Us/f6r/TOCuV7JnpYAIt0Z3GFzdB 774prsBzMJn3ht/IshZu7IjvqkfhJlTHzF4QdAOLXd+UPJaazS6TcOKEJt30F9CvD7UT rE4rmmXydiFRfOHut+fIv6GgwXwYh/87tVBwroDqI2/8xjdqNksMdqFXqmBPx03ITpxH 0Ysw== X-Gm-Message-State: ALoCoQmC8YVYzX5SuglJ/MluFCYOXz1TFSKbjeWMnl08MxhieFSqJLi3Yr4yu8urz6qNePJtuL4/CIAFPMdy0S2fmzZ3BkSQOQ== X-Received: by 10.25.148.201 with SMTP id w192mr3920150lfd.130.1450696736742; Mon, 21 Dec 2015 03:18:56 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id x13sm4910310lfd.7.2015.12.21.03.18.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Dec 2015 03:18:56 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Mon, 21 Dec 2015 13:18:50 +0200 Message-Id: <1450696730-17500-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH v2] 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 Reviewed-by: Bill Fischofer --- Since v1: - corrected error message 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..4616e03 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 system_info init failed.\n"); + return -1; + } if (odp_shm_init_global()) { ODP_ERR("ODP shm init failed.\n");