diff options
author | John Levon <john.levon@nutanix.com> | 2025-07-15 13:59:53 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2025-07-15 17:11:12 +0200 |
commit | ea6788440df37495de6e257ca204cdd669d32b83 (patch) | |
tree | 93f75e17ba15f68ecece688dc9acbfce103cce41 /scripts/rust/rustc_args.py | |
parent | 09353802f0021af9f13ebe9336e1994da4505626 (diff) | |
download | qemu-ea6788440df37495de6e257ca204cdd669d32b83.zip qemu-ea6788440df37495de6e257ca204cdd669d32b83.tar.gz qemu-ea6788440df37495de6e257ca204cdd669d32b83.tar.bz2 |
hw/vfio-user: wait for proxy close correctly
Coverity reported:
CID 1611806: Concurrent data access violations (BAD_CHECK_OF_WAIT_COND)
A wait is performed without a loop. If there is a spurious wakeup, the
condition may not be satisfied.
Fix this by checking ->state for VFIO_PROXY_CLOSED in a loop.
Also rename the callback for clarity.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Mark Cave-Ayland <markcaveayland@nutanix.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250715115954.515819-4-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'scripts/rust/rustc_args.py')
0 files changed, 0 insertions, 0 deletions