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 <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Jesse Barnes 2010-07-22 08:12:20 -07:00 коммит произвёл Eric Anholt
Родитель e7b96f28c5
Коммит aebf0dafee
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1300,7 +1300,7 @@ static void i915_cleanup_compression(struct drm_device *dev)
struct drm_i915_private *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
drm_mm_put_block(dev_priv->compressed_fb); 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); drm_mm_put_block(dev_priv->compressed_llb);
} }