From: Dave Airlie Date: Thu, 22 Jan 2009 07:58:49 +0000 (+1000) Subject: i915: fix freeing path for gem phys objects. X-Git-Tag: v2.6.29-rc3~32^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=260883c85611d3a7e27130af9aef15252856e14f;p=linux-2.6-omap-h63xx.git i915: fix freeing path for gem phys objects. This off-by-one was pointed out by Jesse Barnes. Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 96316fd4723..b15ee1f7c01 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -3364,7 +3364,7 @@ void i915_gem_free_all_phys_object(struct drm_device *dev) { int i; - for (i = 0; i < I915_MAX_PHYS_OBJECT; i++) + for (i = I915_GEM_PHYS_CURSOR_0; i <= I915_MAX_PHYS_OBJECT; i++) i915_gem_free_phys_object(dev, i); }