]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/helpers: Refactor vfio_region_mmap() error handling
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 22 Oct 2024 20:08:28 +0000 (14:08 -0600)
committerCédric Le Goater <clg@redhat.com>
Wed, 23 Oct 2024 12:46:24 +0000 (14:46 +0200)
commit49915c0d2c9868e6f25e52e4d839943611b69e98
tree8db3eb22f18d9193ca36941b9afc91d08d4e91e5
parentfa4e20defe239e42af0a1b5c030dec114f799f56
vfio/helpers: Refactor vfio_region_mmap() error handling

Move error handling code to the end of the function so that it can more
easily be shared by new mmap failure conditions.  No functional change
intended.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/helpers.c