aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-11-11 00:22:25 +0000
committerZhenyu Wang <[email protected]>2022-11-11 05:21:52 +0000
commit3c9fd44b9330adc5006653566f3d386784b2080e (patch)
treeff5b573a176fa600ccdacc7e893ac62b6704b58a /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
parentdrm/i915/gvt: Get reference to KVM iff attachment to VM is successful (diff)
downloadkernel-3c9fd44b9330adc5006653566f3d386784b2080e.tar.gz
kernel-3c9fd44b9330adc5006653566f3d386784b2080e.zip
drm/i915/gvt: Unconditionally put reference to KVM when detaching vGPU
Always put the KVM reference when closing a vCPU device, as intel_vgpu_open_device() succeeds if and only if the KVM pointer is valid and a reference to KVM is acquired. And if that doesn't hold true, the call to kvm_page_track_unregister_notifier() a few lines earlier is doomed. 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