[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] qemu/queue.h: clear linked list pointers on remove
From: |
Stefan Hajnoczi |
Subject: |
[PATCH 0/2] qemu/queue.h: clear linked list pointers on remove |
Date: |
Mon, 24 Feb 2020 10:34:04 +0000 |
QLIST_REMOVE() and friends leave dangling linked list pointers in the node that
was removed. This makes it impossible to decide whether a node is currently in
a list or not. It also makes debugging harder.
Based-on: address@hidden
("[PULL 00/31] Block patches")
Stefan Hajnoczi (2):
qemu/queue.h: clear linked list pointers on remove
aio-posix: remove confusing QLIST_SAFE_REMOVE()
include/qemu/queue.h | 19 +++++++++++++++----
util/aio-posix.c | 2 +-
2 files changed, 16 insertions(+), 5 deletions(-)
--
2.24.1
- [PATCH 0/2] qemu/queue.h: clear linked list pointers on remove,
Stefan Hajnoczi <=