提交 833abf7f 编写于 作者: P Paul Mundt

sh: Zero-out coherent buffer in consistent_alloc().

Be sure to zero out the buffer, this was causing occasional problems
under heavier PCI tests.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 0f13804a
......@@ -28,6 +28,7 @@ void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *handle)
split_page(page, order);
ret = page_address(page);
memset(ret, 0, size);
*handle = virt_to_phys(ret);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册