diff options
| author | Sean Christopherson <[email protected]> | 2022-11-11 00:22:24 +0000 |
|---|---|---|
| committer | Zhenyu Wang <[email protected]> | 2022-11-11 05:13:50 +0000 |
| commit | 9ed1fdee9ee324f3505ff066287ee53143caaaa2 (patch) | |
| tree | 025ba26f9e2c5402af046c65093f332d8b291cd9 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | |
| parent | Linux 6.1-rc4 (diff) | |
| download | kernel-9ed1fdee9ee324f3505ff066287ee53143caaaa2.tar.gz kernel-9ed1fdee9ee324f3505ff066287ee53143caaaa2.zip | |
drm/i915/gvt: Get reference to KVM iff attachment to VM is successful
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]
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
0 files changed, 0 insertions, 0 deletions
