mirror of https://gitee.com/openkylin/linux.git
drm/nouveau: zero dummy page
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
17b20348ea
commit
b6fd780791
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue