]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/container: reform vfio_container_connect cleanup
authorSteve Sistare <steven.sistare@oracle.com>
Fri, 2 May 2025 14:22:39 +0000 (07:22 -0700)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:27 +0000 (12:42 +0200)
commita1f267a7d4d9f60ca013e89ca7562cbb483d7d83
tree6667902630e621e932fecd221edd7d57572bd81f
parent2cc3643df568c9d274781ef896368fd50514fb3e
vfio/container: reform vfio_container_connect cleanup

Replace the proliferation of exit labels in vfio_container_connect with
conditionals for cleaning each piece of state.  No functional change.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cedric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/1746195760-101443-3-git-send-email-steven.sistare@oracle.com
[ clg: vfio_attach_discard_disable() -> vfio_container_attach_discard_disable() ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c