summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorDu, Changbin <changbin.du@intel.com>2016-10-20 14:08:49 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-10-20 17:31:36 +0800
commit19e6393fb5366a89705a62b3276ce42e990d12ce (patch)
tree05c4e424019868bcffd0f2c363bc171166fd1343 /drivers/gpu/drm/i915
parent76a79d59ada00fa22e5f8cd94b36296f395c3406 (diff)
drm/i915/gvt: do not ignore return value of create_scratch_page
Function create_scratch_page() may fail in some cases. Signed-off-by: Du, Changbin <changbin.du@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/gvt/gtt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c
index ca1572070792..2cc761328569 100644
--- a/drivers/gpu/drm/i915/gvt/gtt.c
+++ b/drivers/gpu/drm/i915/gvt/gtt.c
@@ -1995,8 +1995,7 @@ int intel_vgpu_init_gtt(struct intel_vgpu *vgpu)
gtt->ggtt_mm = ggtt_mm;
- create_scratch_page(vgpu);
- return 0;
+ return create_scratch_page(vgpu);
}
/**