linux/drivers/vfio/pci/virtio
Alex Williamson b0eab97305 vfio/virtio: Use guard() for bar_mutex in legacy I/O
Convert the bar_mutex acquisition in virtiovf_issue_legacy_rw_cmd()
to use guard(), eliminating the out label and goto-based error paths
in favor of direct returns.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Alex Williamson <alex.williamson@nvidia.com>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20260414200625.3601509-5-alex.williamson@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
2026-04-21 12:01:21 -06:00
..
common.h vfio/virtio: Convert list_lock from spinlock to mutex 2026-04-21 12:01:20 -06:00
Kconfig vfio/virtio: Enable support for virtio-block live migration 2025-03-10 14:42:50 -06:00
legacy_io.c vfio/virtio: Use guard() for bar_mutex in legacy I/O 2026-04-21 12:01:21 -06:00
main.c vfio/pci: Convert all PCI drivers to get_region_info_caps 2025-11-12 15:06:40 -07:00
Makefile vfio/virtio: Enable live migration once VIRTIO_PCI was configured 2024-11-13 16:28:32 -07:00
migrate.c vfio/virtio: Use guard() for migf->lock where applicable 2026-04-21 12:01:21 -06:00