drm/i915/gvt: Don't use ggtt_validdate_range() with size=0
authorXiong Zhang <xiong.y.zhang@intel.com>
Mon, 27 May 2019 05:45:52 +0000 (13:45 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 30 Jul 2019 06:29:48 +0000 (14:29 +0800)
commitc25144098bee19b089c8a37c54517bf467f06403
tree7800f968f6c48efb08aebf66e06135eb62b8f39f
parentd18fd0576e05a4b03b588e131093b0437fccb75f
drm/i915/gvt: Don't use ggtt_validdate_range() with size=0

Use vgpu_gmadr_is_valid() directly instead.

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/fb_decoder.c