[dpdk-dev] [PATCH] eal: fix leak in hotplug add on parse error

Thomas Monjalon thomas at monjalon.net
Thu Aug 3 22:06:43 CEST 2017


03/08/2017 14:34, Gaetan Rivet:
> If rte_eal_devargs_parse fails, the rte_devargs has not yet been inserted
> in the global list. When jumping to err_devarg, the removal fails and it
> is not properly freed.
> 
> Free the allocated rte_devargs if its removal failed.
> 
> Coverity issue: 158658
> Fixes: 7e8b26650146 ("eal: fix hotplug add / remove")
> 
> Signed-off-by: Gaetan Rivet <gaetan.rivet at 6wind.com>

Applied, thanks



More information about the dev mailing list