]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Add missing vfio_unregister_group_dev() call
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 29 Sep 2022 17:48:35 +0000 (14:48 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 30 Sep 2022 17:56:02 +0000 (11:56 -0600)
commit679c28386706533c6e8964f7b14a034c952abdbe
tree5378403444612c60279a22d86fba622637c5bba4
parent4f4ae091cce85150d656d9bc46df19033add9683
drm/i915/gvt: Add missing vfio_unregister_group_dev() call

When converting to directly create the vfio_device the mdev driver has to
put a vfio_register_emulated_iommu_dev() in the probe() and a pairing
vfio_unregister_group_dev() in the remove.

This was missed for gvt, add it.

Cc: stable@vger.kernel.org
Fixes: 3fbeb0618276 ("drm/i915/gvt: convert to use vfio_register_emulated_iommu_dev")
Reported-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/0-v1-013609965fe8+9d-vfio_gvt_unregister_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/gpu/drm/i915/gvt/kvmgt.c