diff options
author | Klaus Jensen | 2022-11-10 07:59:44 +0100 |
---|---|---|
committer | Klaus Jensen | 2022-12-01 08:44:52 +0100 |
commit | 3dbc1708ea37d03dd18ce498039e31d8565e673a (patch) | |
tree | 476c6cb356c4285f6d45191184f9d603635fc8c3 /meson.build | |
parent | hw/nvme: fix aio cancel in format (diff) | |
download | qemu-3dbc1708ea37d03dd18ce498039e31d8565e673a.tar.gz qemu-3dbc1708ea37d03dd18ce498039e31d8565e673a.tar.xz qemu-3dbc1708ea37d03dd18ce498039e31d8565e673a.zip |
hw/nvme: fix aio cancel in flush
Make sure that iocb->aiocb is NULL'ed when cancelling.
Fix a potential use-after-free by removing the bottom half and enqueuing
the completion directly.
Fixes: 38f4ac65ac88 ("hw/nvme: reimplement flush to allow cancellation")
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions