diff options
author | Dave Airlie <airlied@redhat.com> | 2009-01-22 02:58:49 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-01-22 02:58:49 -0500 |
commit | 260883c85611d3a7e27130af9aef15252856e14f (patch) | |
tree | 0e5430b5f17e21b8f59ff10fa14b7072f68bbd8d /drivers | |
parent | ad2563c2e42fc67b0976aeb70e9f3faf1c1196e8 (diff) |
i915: fix freeing path for gem phys objects.
This off-by-one was pointed out by Jesse Barnes.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 96316fd47233..b15ee1f7c01c 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) | |||
3364 | { | 3364 | { |
3365 | int i; | 3365 | int i; |
3366 | 3366 | ||
3367 | for (i = 0; i < I915_MAX_PHYS_OBJECT; i++) | 3367 | for (i = I915_GEM_PHYS_CURSOR_0; i <= I915_MAX_PHYS_OBJECT; i++) |
3368 | i915_gem_free_phys_object(dev, i); | 3368 | i915_gem_free_phys_object(dev, i); |
3369 | } | 3369 | } |
3370 | 3370 | ||