[dpdk-dev] [PATCH] ring: fix error return value when creating ring

David Marchand david.marchand at redhat.com
Sat Feb 5 18:04:09 CET 2022


On Mon, Jan 10, 2022 at 3:15 PM Ananyev, Konstantin
<konstantin.ananyev at intel.com> wrote:
>
> > The error value returned by rte_ring_create_elem() should be positive
> > integers. However, if the rte_ring_get_memsize_elem() function fails,
> > a negative number is returned and is directly used as the return value.
> > As a result, this will cause the external call to check the return
> > value to fail(like called by rte_mempool_create()).
> >
> > Fixes: a182620042aa ("ring: get size in memory")
> > Cc: stable at dpdk.org
> >
> > Reported-by: Nan Zhou <zhounan14 at huawei.com>
> > Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>

Applied, thanks.


-- 
David Marchand



More information about the stable mailing list