drm/nouveau: zero dummy page
authorBen Skeggs <bskeggs@redhat.com>
Sun, 12 Sep 2010 23:58:37 +0000 (09:58 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Sep 2010 06:26:35 +0000 (16:26 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_sgdma.c

index c0b7965..7f028fe 100644 (file)
@@ -242,7 +242,7 @@ nouveau_sgdma_init(struct drm_device *dev)
        }
 
        dev_priv->gart_info.sg_dummy_page =
-               alloc_page(GFP_KERNEL|__GFP_DMA32);
+               alloc_page(GFP_KERNEL|__GFP_DMA32|__GFP_ZERO);
        if (!dev_priv->gart_info.sg_dummy_page) {
                nouveau_gpuobj_ref(NULL, &gpuobj);
                return -ENOMEM;