Skip to content

Commit

Permalink
drm/i915/gvt: do not ignore return value of create_scratch_page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Du, Changbin authored and Zhenyu Wang committed Oct 20, 2016
1 parent 76a79d5 commit 19e6393
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/i915/gvt/gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 19e6393

Please sign in to comment.