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 c0b79659419b36179b46d8b7c384ad670b29b5e0..7f028fee7a5899c94dc5c41bfde6fb08244fc21c 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;