From: Ben Skeggs Date: Thu, 8 Jul 2010 22:45:57 +0000 (+1000) Subject: drm/nouveau: fix mtrr cleanup path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=baf8035edb5d8285cbf0bf2d1895b0a787501f8f;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git drm/nouveau: fix mtrr cleanup path Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c index 5f8f95d4039..5c48b1e02ca 100644 --- a/drivers/gpu/drm/nouveau/nouveau_mem.c +++ b/drivers/gpu/drm/nouveau/nouveau_mem.c @@ -253,7 +253,7 @@ nouveau_mem_close(struct drm_device *dev) drm_mtrr_del(dev_priv->fb_mtrr, pci_resource_start(dev->pdev, 1), pci_resource_len(dev->pdev, 1), DRM_MTRR_WC); - dev_priv->fb_mtrr = 0; + dev_priv->fb_mtrr = -1; } }