From e6935b78ff6c9a792fd4fbc5de64b17e0fff572b Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 25 Jan 2026 06:34:05 +0100 Subject: [PATCH] VFIO: Fix a compile-breaking error accidentally introduced earlier today. --- src/device/vfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/vfio.c b/src/device/vfio.c index 776ded002..6ffb62c86 100644 --- a/src/device/vfio.c +++ b/src/device/vfio.c @@ -2569,7 +2569,7 @@ vfio_dev_prereset(vfio_device_t *dev) dev->can_flr_reset = (dev->pcie_cap && (vfio_config_readb(0, dev->pcie_cap + 7, 1, dev) & 0x10)) || (dev->af_cap && (vfio_config_readb(0, dev->af_cap + 3, 1, dev) & 0x02)); /* Disable bus master, BARs, expansion ROM and VGA regions; also enable INTx. */ - vfio_config_writew(0, 0x04, vfio_config_readw(0, 0x04, 2, dev) & ~0x0407, dev); + vfio_config_writew(0, 0x04, 2, vfio_config_readw(0, 0x04, 2, dev) & ~0x0407, dev); } static void