]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: initialize dmabuf mutex in vgpu_create
authorHang Yuan <hang.yuan@linux.intel.com>
Mon, 30 Jul 2018 02:52:53 +0000 (10:52 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 14 Aug 2018 07:26:09 +0000 (15:26 +0800)
commit65f0fcb562ca0927e6c0e28574ee14ee0f59f2f5
tree21885e025c8aa740eaa3fdf90bb20bc80b999eb1
parentb39e598f114c0e6162f53318d00fd24ab4f3f96a
drm/i915/gvt: initialize dmabuf mutex in vgpu_create

Currently, the mutex used in GVT dmabuf support is not initialized until
vgpu device is opened. If one vgpu device is opened and then removed, the
mutex will be used in vgpu remove operation without initialization. This
patch initializes the mutex in vgpu create operation to avoid the problem.

Fixes: 493676e3dbd2("drm/i915/gvt: Dmabuf support for GVT-g")
Signed-off-by: Hang Yuan <hang.yuan@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/vgpu.c