vfio: Set device->group in helper function
authorYi Liu <yi.l.liu@intel.com>
Fri, 25 Nov 2022 05:22:27 +0000 (21:22 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 5 Dec 2022 12:56:01 +0000 (08:56 -0400)
commit49ea02d390a34a538a3f54b9ce5665e474690bc7
tree9b7cbea2fee79a1b3c6e6f148fb05bf814fd1917
parent32e0922821f2115eb8940b6a6b942ba61eff15c2
vfio: Set device->group in helper function

This avoids referencing device->group in __vfio_register_dev().

Link: https://lore.kernel.org/r/20221201145535.589687-5-yi.l.liu@intel.com
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Lixiao Yang <lixiao.yang@intel.com>
Tested-by: Yu He <yu.he@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/vfio/vfio_main.c