Skip to contentSkip to conversation

drm/i915: don't free non-existent compressed llb on ILK+

PATCH Applied Jesse Barnes 2 participants 2 messages Jul 22, 2010 – Jul 26, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: don't free non-existent compressed llb on ILK+

We should only free the compressed llb if we allocated it in the first place otherwise we'll panic at unload time.

---
 drivers/gpu/drm/i915/i915_dma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/i915/i915_dma.c +1 -1
index 9ddb7b5..14054c0 100644
@@ -1302,7 +1302,7 @@ static void i915_cleanup_compression(struct drm_device *dev)
 	struct drm_i915_private *dev_priv = dev->dev_private;
 
 	drm_mm_put_block(dev_priv->compressed_fb);
-	if (!IS_GM45(dev))
+	if (dev_priv->compressed_llb)
 		drm_mm_put_block(dev_priv->compressed_llb);
 }
 
Signature · 1 line
1.7.1