[dpdk-dev] [PATCH v3 1/3] mempool: fix segfault when shared mempool handler not linked

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Apr 3 18:58:32 CEST 2017


2017-03-31 15:49, Olivier Matz:
> On Fri, 31 Mar 2017 11:05:35 +0530, Shreyansh Jain <shreyansh.jain at nxp.com> wrote:
> > Fixes: 449c49b93a6b ("mempool: support handler operations")
> > 
> > In case the stack or ring mempool handler are compiled as shared
> > library and not linked in with test binary, segfault is reported.
> > This is because return value of rte_mempool_set_ops_byname is not
> > being checked in rte_mempool_ops_alloc.
> > 
> > This patch handles error returned from rte_mempool_set_ops_byname
> > when a mempool is not found.
> > 
> > Signed-off-by: Shreyansh Jain <shreyansh.jain at nxp.com>
> 
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>

Series applied, thanks


More information about the dev mailing list