[PATCH] drm/i915/gvt: destroy dmabuf mutex in intel_gvt_destroy_vgpu
hang.yuan at linux.intel.com
hang.yuan at linux.intel.com
Fri Aug 3 10:29:24 UTC 2018
From: Hang Yuan <hang.yuan at linux.intel.com>
dmabuf mutex is initialized when vgpu is created. Destroy it when vgpu
is removed.
Fixes: 6046f8b91e87("drm/i915/gvt: initialize dmabuf mutex in vgpu_create")
Signed-off-by: Hang Yuan <hang.yuan at linux.intel.com>
---
drivers/gpu/drm/i915/gvt/vgpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c
index 1c8609d..d6ffee3 100644
--- a/drivers/gpu/drm/i915/gvt/vgpu.c
+++ b/drivers/gpu/drm/i915/gvt/vgpu.c
@@ -268,6 +268,7 @@ void intel_gvt_destroy_vgpu(struct intel_vgpu *vgpu)
intel_vgpu_free_resource(vgpu);
intel_vgpu_clean_mmio(vgpu);
intel_vgpu_dmabuf_cleanup(vgpu);
+ mutex_destroy(&vgpu->dmabuf_lock);
mutex_unlock(&vgpu->vgpu_lock);
mutex_lock(&gvt->lock);
--
2.7.4
More information about the intel-gvt-dev
mailing list