drm/i915: don't free non-existent compressed llb on ILK+
Subsystems (2)
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.
Signed-off-by Jesse Barnes <[email protected]>
--- drivers/gpu/drm/i915/i915_dma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/i915/i915_dma.c +1 -1
@@ -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
Eric Anholt
AppliedQuoted 2 lines · Jesse Barnes
We should only free the compressed llb if we allocated it in the first place otherwise we'll panic at unload time.
Applied to for-linus.
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx