summaryrefslogtreecommitdiff
path: root/kernel/dma/virt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/dma/virt.c')
-rw-r--r--kernel/dma/virt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/virt.c b/kernel/dma/virt.c
index 631ddec4b60a..ebe128833af7 100644
--- a/kernel/dma/virt.c
+++ b/kernel/dma/virt.c
@@ -13,7 +13,7 @@ static void *dma_virt_alloc(struct device *dev, size_t size,
{
void *ret;
- ret = (void *)__get_free_pages(gfp, get_order(size));
+ ret = (void *)__get_free_pages(gfp | __GFP_ZERO, get_order(size));
if (ret)
*dma_handle = (uintptr_t)ret;
return ret;