summary refs log tree commit diff stats
path: root/util/aio-posix.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2020-02-24 10:34:05 +0000
committerStefan Hajnoczi <stefanha@redhat.com>2020-03-09 16:39:20 +0000
commita31ca6801c027dbee2c589da85814b56eec563f6 (patch)
tree6ca6c52710b3b4b7fb7d6594eebc01b752347f42 /util/aio-posix.c
parent67f17e23baca5dd545fe98b01169cc351a70fe35 (diff)
downloadfocaccia-qemu-a31ca6801c027dbee2c589da85814b56eec563f6.tar.gz
focaccia-qemu-a31ca6801c027dbee2c589da85814b56eec563f6.zip
qemu/queue.h: clear linked list pointers on remove
Do not leave stale linked list pointers around after removal.  It's
safer to set them to NULL so that use-after-removal results in an
immediate segfault.

The RCU queue removal macros are unchanged since nodes may still be
traversed after removal.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Link: https://lore.kernel.org/r/20200224103406.1894923-2-stefanha@redhat.com
Message-Id: <20200224103406.1894923-2-stefanha@redhat.com>
Diffstat (limited to 'util/aio-posix.c')
0 files changed, 0 insertions, 0 deletions