[dpdk-dev] [PATCH v2 2/2] net/i40e: fix unsafe tailq element removal

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jul 22 16:56:26 CEST 2016


2016-07-22 15:02, Pablo de Lara:
> i40e driver was removing elements when iterating tailq lists
> with TAILQ_FOREACH macro, which is not safe.
> Instead, TAILQ_FOREACH_SAFE macro is used when removing/freeing
> these elements.

Pablo,
Maybe we should add a note to explain that the bug of freeing
while iterating is seen since the memory is zeroed on free:
	ea0bddbd14e6 ("mem: zero out memory on free")



More information about the dev mailing list