]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Refine error handling for intel_vgpu_pin_mm
authorfred gao <fred.gao@intel.com>
Fri, 18 Aug 2017 07:41:09 +0000 (15:41 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 8 Sep 2017 06:21:15 +0000 (14:21 +0800)
commit759938eb66e9e2166959ba14ea47ed859fcfdfbb
tree0082ef6ea7ccbc427f9c076b7a8fac6cb10167d9
parent9ae09eccc2eb5ca0eabd60225b7f28e066b8fea3
drm/i915/gvt: Refine error handling for intel_vgpu_pin_mm

When it is failed in shadow_mm, the pin_count should rollback
to the original states before return.

v2:
- split the mixed several error paths for better review. (Zhenyu)

v3:
  increase the pincount after shadow success. (Zhenyu)

Signed-off-by: fred gao <fred.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c