Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qom: Make object_child_foreach() safe for objects removal
Current object_child_foreach() uses QTAILQ_FOREACH() to walk through children and that makes children removal from the callback impossible. This makes object_child_foreach() use QTAILQ_FOREACH_SAFE(). Signed-off-by: Alexey Kardashevskiy <[email protected]> Reviewed-by: Hu Tao <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
- Loading branch information