Re: [PATCH v5] examples/vm_power_manager: use safe version of list iterator

2022-10-05 Thread Thomas Monjalon
05/10/2022 00:09, Reshma Pattan: > From: Hamza Khan > > Currently, when vm_power_manager exits, we are using a LIST_FOREACH > macro to iterate over VM info structures while freeing them. This > leads to use-after-free error. To address this, replace all usages of > LIST_* with TAILQ_* macros, and

[PATCH v5] examples/vm_power_manager: use safe version of list iterator

2022-10-04 Thread Reshma Pattan
From: Hamza Khan Currently, when vm_power_manager exits, we are using a LIST_FOREACH macro to iterate over VM info structures while freeing them. This leads to use-after-free error. To address this, replace all usages of LIST_* with TAILQ_* macros, and use the RTE_TAILQ_FOREACH_SAFE macro to iter