[PATCH 02/10] vfio: Move vfio_device_assign_container() into vfio_device_first_open()

Jason Gunthorpe jgg at nvidia.com
Tue Nov 1 12:14:17 UTC 2022


On Tue, Nov 01, 2022 at 07:38:47AM +0000, Tian, Kevin wrote:
> > From: Jason Gunthorpe <jgg at nvidia.com>
> > Sent: Wednesday, October 26, 2022 2:17 AM
> > 
> > +err_container:
> > +	vfio_device_unassign_container(device);
> >  err_module_put:
> >  	device->kvm = NULL;
> 
> err_module_put should be moved after nullifying device->kvm.
> 
> otherwise it looks good to me:
> 
> Reviewed-by: Kevin Tian <kevin.tian at intel.com>

Done, thanks

Jason


More information about the dri-devel mailing list