]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
vfio/xe: Add a missing vfio_pci_core_release_dev()
authorMichał Winiarski <michal.winiarski@intel.com>
Fri, 10 Apr 2026 22:49:48 +0000 (00:49 +0200)
committerAlex Williamson <alex@shazbot.org>
Mon, 13 Apr 2026 21:05:37 +0000 (15:05 -0600)
The driver is implementing its own .release(), which means that it needs
to call vfio_pci_core_release_dev().
Add the missing call.

Fixes: 1f5556ec8b9ef ("vfio/xe: Add device specific vfio_pci driver variant for Intel graphics")
Reported-by: Niklas Schnelle <schnelle@linux.ibm.com>
Closes: https://lore.kernel.org/kvm/408e262c507e8fd628a71e39904fedd99fa0ee8e.camel@linux.ibm.com/
Cc: stable@vger.kernel.org
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20260410224948.900550-2-michal.winiarski@intel.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
drivers/vfio/pci/xe/main.c

index 409fa22dfc78b32d0e256e9434c20aba8958dcba..155138250904344709b2768aedd529401f3aa622 100644 (file)
@@ -504,6 +504,7 @@ static void xe_vfio_pci_release_dev(struct vfio_device *core_vdev)
                container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);
 
        mutex_destroy(&xe_vdev->state_mutex);
+       vfio_pci_core_release_dev(core_vdev);
 }
 
 static const struct vfio_device_ops xe_vfio_pci_ops = {