Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aebf0daf authored by Jesse Barnes's avatar Jesse Barnes Committed by Eric Anholt
Browse files

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.

Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent e7b96f28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1300,7 +1300,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);
}