drm/nouveau: fix mtrr cleanup path
authorBen Skeggs <bskeggs@redhat.com>
Thu, 8 Jul 2010 22:45:57 +0000 (08:45 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Jul 2010 00:13:53 +0000 (10:13 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_mem.c

index 5f8f95d403956bc959b4c6cc93c6142ccd8bc71b..5c48b1e02ca434dd135a7a5dae67865e7a06f4a8 100644 (file)
@@ -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;
        }
 }