From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH v2 1/2] mempool/dpaa2: fix the return value for alloc fail Date: Mon, 10 Jul 2017 10:10:51 +0200 Message-ID: <20170710101051.1f5a6d10@platinum> References: <1495532028-9700-1-git-send-email-hemant.agrawal@nxp.com> <1498135688-3853-1-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: , To: Hemant Agrawal Return-path: Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) by dpdk.org (Postfix) with ESMTP id 5449758D1 for ; Mon, 10 Jul 2017 10:10:54 +0200 (CEST) Received: by mail-wr0-f175.google.com with SMTP id 77so127534489wrb.1 for ; Mon, 10 Jul 2017 01:10:54 -0700 (PDT) In-Reply-To: <1498135688-3853-1-git-send-email-hemant.agrawal@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 22 Jun 2017 18:18:07 +0530, Hemant Agrawal wrote: > In case the alloc api is not able to allocate the required > number of buffer, it can return '0', which will not indicate > the failure to the calling function. > This patch fix the return value to indicate the failure. > > Fixes: 5dc43d22b5ad ("mempool/dpaa2: add hardware offloaded mempool") > CC: stable@dpdk.org > > Signed-off-by: Hemant Agrawal Reviewed-by: Olivier Matz