> From: Sean Christopherson
> Sent: Friday, November 11, 2022 8:22 AM
> 
> Get a reference to KVM if and only if a vGPU is successfully attached to
> the VM to avoid leaking a reference if there's no available vGPU.  On
> open_device() failure, vfio_device_open() doesn't invoke close_device().
> 
> Fixes: 421cfe6596f6 ("vfio: remove VFIO_GROUP_NOTIFY_SET_KVM")
> Cc: [email protected]
> Signed-off-by: Sean Christopherson <[email protected]>

Reviewed-by: Kevin Tian <[email protected]>

Reply via email to