projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad2563c
)
i915: fix freeing path for gem phys objects.
author
Dave Airlie
<airlied@redhat.com>
Thu, 22 Jan 2009 07:58:49 +0000
(17:58 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 22 Jan 2009 07:58:49 +0000
(17:58 +1000)
This off-by-one was pointed out by Jesse Barnes.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index 96316fd4723322f7ac277e3747abdc806ab3a98e..b15ee1f7c01cc5f0e7217022be45e0dbfdae3870 100644
(file)
--- 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);
}