From: Zhenyu Wang Date: Tue, 17 Jan 2017 14:06:11 +0000 (+0800) Subject: drm/i915: Fix a typo in vgt_balloon_space() X-Git-Tag: v4.11-rc1~83^2~39^2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b368f53378a4dc193239b5b8ffe8789bbb8b90a8;p=thirdparty%2Fkernel%2Flinux.git drm/i915: Fix a typo in vgt_balloon_space() Commit 625d988acc28 ("drm/i915: Extract reserving space in the GTT to a helper") introduces this typo which can cause a driver loading failure in Linux GVT-g guest. Fixes: 625d988acc28 ("drm/i915: Extract reserving space in the GTT to a helper") Cc: Joonas Lahtinen Cc: Chris Wilson Cc: Zhiyuan Lv Signed-off-by: Zhenyu Wang Signed-off-by: Zhi Wang Link: http://patchwork.freedesktop.org/patch/msgid/1484661972-9366-1-git-send-email-zhi.a.wang@intel.com Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson --- diff --git a/drivers/gpu/drm/i915/i915_vgpu.c b/drivers/gpu/drm/i915/i915_vgpu.c index f1ad4fbb5ba72..d0abfd08a01c3 100644 --- a/drivers/gpu/drm/i915/i915_vgpu.c +++ b/drivers/gpu/drm/i915/i915_vgpu.c @@ -122,7 +122,7 @@ static int vgt_balloon_space(struct i915_ggtt *ggtt, { unsigned long size = end - start; - if (start <= end) + if (start >= end) return -EINVAL; DRM_INFO("balloon space: range [ 0x%lx - 0x%lx ] %lu KiB.\n",