drm/i915/gvt: do not ignore return value of create_scratch_page
authorDu, Changbin <changbin.du@intel.com>
Thu, 20 Oct 2016 06:08:49 +0000 (14:08 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 09:31:36 +0000 (17:31 +0800)
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>
drivers/gpu/drm/i915/gvt/gtt.c

index ca157207079255b86790e4d7200f2b405333e787..2cc761328569c972cc7cb48962dfe7b53acec5f4 100644 (file)
@@ -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);
 }
 
 /**