From patchwork Tue Dec 16 10:59:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 42318 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1C8B626C54 for ; Tue, 16 Dec 2014 11:00:12 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf8453983wgh.9 for ; Tue, 16 Dec 2014 03:00:11 -0800 (PST) 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:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=eABWhq7YptpS4WIP/RHshWMMxmr7GkdaP/Nln8Sk/vw=; b=KqUH5kXP4H+INB21q/I7CxTm+9NN9k3isBnUnsbax2deQaI1VD6l5UaWr54lUC269D td4NHe3UDM6zpFj+yWeQuBlWTiQmbu6lJFQHIkEIs/QzhJYMEc1wLCk/k8JMwRPdm5fm tZV8u9ijPwOBLWcK5AnxXxtOMIU1YgRjoPwrfoVAizkxJvCcmCNGDRBaQwtx7m1/QbN+ jQQnnp1LVeHdK4/HmJXHjZHmAoHa4gTJIWKsrITkijmA0pArq0tb1+edG1MFG1BqLGwS fUhKYSCmORMgKn0fW90NUts86i0hPldfwnOabV14b5mx1NGJp9+1D2PgjI8y14ZVpo5E WpuQ== X-Gm-Message-State: ALoCoQm32Fnwu5vxUaBPXve3sk72uNYwyTEoa++/sbKKC5ZLiCo1pJ412JwxF4uup2VUXzEuuowU X-Received: by 10.194.178.163 with SMTP id cz3mr5529237wjc.1.1418727611393; Tue, 16 Dec 2014 03:00:11 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.132 with SMTP id dc4ls692015lad.97.gmail; Tue, 16 Dec 2014 03:00:10 -0800 (PST) X-Received: by 10.112.234.201 with SMTP id ug9mr34814111lbc.79.1418727610961; Tue, 16 Dec 2014 03:00:10 -0800 (PST) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id jc4si370654lbc.137.2014.12.16.03.00.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 03:00:10 -0800 (PST) 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 u10so10821951lbd.3 for ; Tue, 16 Dec 2014 03:00:10 -0800 (PST) X-Received: by 10.112.131.1 with SMTP id oi1mr27303790lbb.2.1418727610479; Tue, 16 Dec 2014 03:00:10 -0800 (PST) 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.142.69 with SMTP id ru5csp996733lbb; Tue, 16 Dec 2014 03:00:09 -0800 (PST) X-Received: by 10.140.90.47 with SMTP id w44mr35051536qgd.4.1418727609106; Tue, 16 Dec 2014 03:00:09 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id u61si457276qge.17.2014.12.16.03.00.08 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Dec 2014 03:00:09 -0800 (PST) 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 1Y0prK-0005DS-Di; Tue, 16 Dec 2014 11:00:06 +0000 Received: from mail-oi0-f50.google.com ([209.85.218.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0prE-0005Ck-7I for lng-odp@lists.linaro.org; Tue, 16 Dec 2014 11:00:00 +0000 Received: by mail-oi0-f50.google.com with SMTP id a141so9321368oig.37 for ; Tue, 16 Dec 2014 02:59:54 -0800 (PST) X-Received: by 10.60.146.231 with SMTP id tf7mr22068341oeb.48.1418727594802; Tue, 16 Dec 2014 02:59:54 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id wk3sm172811obc.3.2014.12.16.02.59.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 02:59:54 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 16 Dec 2014 04:59:48 -0600 Message-Id: <1418727588-16841-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Topics: patch Subject: [lng-odp] [PATCHv2] Return correct error result if pool shm cannot be allocated 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: bill.fischofer@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 Fix to Bug #1002 Signed-off-by: Bill Fischofer Signed-off-by: Bill Fischofer --- v2 corrects commit message platform/linux-generic/odp_buffer_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_buffer_pool.c b/platform/linux-generic/odp_buffer_pool.c index e947dde..4c8b037 100644 --- a/platform/linux-generic/odp_buffer_pool.c +++ b/platform/linux-generic/odp_buffer_pool.c @@ -234,7 +234,7 @@ odp_buffer_pool_t odp_buffer_pool_create(const char *name, ODP_PAGE_SIZE, 0); if (shm == ODP_SHM_INVALID) { POOL_UNLOCK(&pool->s.lock); - return ODP_BUFFER_INVALID; + return ODP_BUFFER_POOL_INVALID; } pool->s.pool_base_addr = odp_shm_addr(shm); } else {