From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH v2 1/2] mempool/dpaa2: fix the return value for alloc fail Date: Tue, 18 Jul 2017 20:17:20 +0530 Message-ID: <05874f60-e427-b9e3-93da-a78e0b03d284@nxp.com> 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="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: , To: Hemant Agrawal , Return-path: In-Reply-To: <1498135688-3853-1-git-send-email-hemant.agrawal@nxp.com> Content-Language: en-US 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 Thursday 22 June 2017 06:18 PM, 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 > --- Acked-by: Shreyansh Jain