Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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>

authored by

Michał Winiarski and committed by
Alex Williamson
493c7eff 1b81ed61

+1
+1
drivers/vfio/pci/xe/main.c
··· 504 504 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev); 505 505 506 506 mutex_destroy(&xe_vdev->state_mutex); 507 + vfio_pci_core_release_dev(core_vdev); 507 508 } 508 509 509 510 static const struct vfio_device_ops xe_vfio_pci_ops = {