[dpdk-dev] [PATCH v2 1/2] mempool/dpaa2: fix the return value for alloc fail

Olivier Matz olivier.matz at 6wind.com
Mon Jul 10 10:10:51 CEST 2017


On Thu, 22 Jun 2017 18:18:07 +0530, Hemant Agrawal <hemant.agrawal at nxp.com> 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 at dpdk.org
> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>

Reviewed-by: Olivier Matz <olivier.matz at 6wind.com>


More information about the dev mailing list