mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-06 11:02:25 -10:00
QLIST_REMOVE() assumes the element is in a list. It also leaves the element's linked list pointers dangling. Introduce a safe version of QLIST_REMOVE() and convert open-coded instances of this pattern. Signed-off-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Sergio Lopez <[email protected]> Message-id: [email protected] Signed-off-by: Stefan Hajnoczi <[email protected]>