On 22/08/2022 11:58, Reshma Pattan wrote:
From: Hamza Khan <[email protected]>

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 iterate and delete VM info structures.

* The change is small and doesn’t affect other code
* Testing was performed on the patch

Fixes: e8ae9b662506 ("examples/vm_power: channel manager and monitor in host")
Cc: [email protected]
Cc: [email protected]

Signed-off-by: Hamza Khan <[email protected]>
Reviewed-by: Reshma Pattan <[email protected]>
Acked-by: Reshma Pattan <[email protected]>
Signed-off-by: Reshma Pattan <[email protected]>
---
v4: fix header file inclusion
---

--snip--

Acked-by: David Hunt <[email protected]>


Reply via email to