diff options
author | Du, Changbin <changbin.du@intel.com> | 2016-10-20 08:08:49 +0200 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2016-10-20 11:31:36 +0200 |
commit | 19e6393fb5366a89705a62b3276ce42e990d12ce (patch) | |
tree | 05c4e424019868bcffd0f2c363bc171166fd1343 /drivers/gpu/drm/i915/gvt | |
parent | drm/i915/gvt: fix spare warnings on odd constant _Bool cast (diff) | |
download | linux-19e6393fb5366a89705a62b3276ce42e990d12ce.tar.xz linux-19e6393fb5366a89705a62b3276ce42e990d12ce.zip |
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/gvt')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/gtt.c | 3 |
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); } /** |