Skip to content

Commit

Permalink
i915: fix freeing path for gem phys objects.
Browse files Browse the repository at this point in the history
This off-by-one was pointed out by Jesse Barnes.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Jan 22, 2009
1 parent ad2563c commit 260883c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 260883c

Please sign in to comment.