From: Du, Changbin Date: Thu, 20 Oct 2016 06:08:49 +0000 (+0800) Subject: drm/i915/gvt: do not ignore return value of create_scratch_page X-Git-Tag: v4.10-rc1~154^2~44^2~10^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=19e6393fb5366a89705a62b3276ce42e990d12ce;p=karo-tx-linux.git 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 Signed-off-by: Zhenyu Wang --- 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); } /**