mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 15:19:51 +00:00
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: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
0f13804ae9
commit
833abf7fe0
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user