Skip to content

Commit 493c7ef

Browse files
mwiniarsawilliam
authored andcommitted
vfio/xe: Add a missing vfio_pci_core_release_dev()
The driver is implementing its own .release(), which means that it needs to call vfio_pci_core_release_dev(). Add the missing call. Fixes: 1f5556e ("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>
1 parent 1b81ed6 commit 493c7ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/vfio/pci/xe/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ static void xe_vfio_pci_release_dev(struct vfio_device *core_vdev)
504504
container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);
505505

506506
mutex_destroy(&xe_vdev->state_mutex);
507+
vfio_pci_core_release_dev(core_vdev);
507508
}
508509

509510
static const struct vfio_device_ops xe_vfio_pci_ops = {

0 commit comments

Comments
 (0)