Commit b368f533 authored by Zhenyu Wang's avatar Zhenyu Wang Committed by Chris Wilson

drm/i915: Fix a typo in vgt_balloon_space()

Commit 625d988a ("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: 625d988a ("drm/i915: Extract reserving space in the GTT to a helper")
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Zhiyuan Lv <zhiyuan.lv@intel.com>
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: default avatarZhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1484661972-9366-1-git-send-email-zhi.a.wang@intel.comReviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent bf6b2030
...@@ -122,7 +122,7 @@ static int vgt_balloon_space(struct i915_ggtt *ggtt, ...@@ -122,7 +122,7 @@ static int vgt_balloon_space(struct i915_ggtt *ggtt,
{ {
unsigned long size = end - start; unsigned long size = end - start;
if (start <= end) if (start >= end)
return -EINVAL; return -EINVAL;
DRM_INFO("balloon space: range [ 0x%lx - 0x%lx ] %lu KiB.\n", DRM_INFO("balloon space: range [ 0x%lx - 0x%lx ] %lu KiB.\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment