[dpdk-dev] [PATCH] mem: fix cleanup after incomplete initialization

Thomas Monjalon thomas at monjalon.net
Tue Apr 20 23:34:06 CEST 2021


20/04/2021 18:49, Burakov, Anatoly:
> On 09-Apr-21 6:16 PM, Dmitry Kozlyuk wrote:
> > In case of EAL initialization failure rte_eal_memory_detach() may be
> > called before mapping memory configuration, which in this case points
> > to the static structure. Attempt to unmap it yields error:
> > 
> >      EAL: Could not unmap shared memory config: Invalid argument
> > 
> > Skip unmapping memory configuration if it's not yet shared.
> > 
> > Fixes: dfbc61a2f9a6 ("mem: detach memsegs on cleanup")
> > Cc: Anatoly Burakov <anatoly.burakov at intel.com>
> > 
> > Reported-by: David Marchand <david.marchand at redhat.com>
> > Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
> 
> Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>

Applied, thanks




More information about the dev mailing list