projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f13804
)
sh: Zero-out coherent buffer in consistent_alloc().
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 10 Oct 2006 09:33:10 +0000
(18:33 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 10 Oct 2006 09:33:10 +0000
(18:33 +0900)
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>
arch/sh/mm/consistent.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/mm/consistent.c
b/arch/sh/mm/consistent.c
index c81e6b67ad300e9e8b23c5adfc1658184d1ea59e..38c82d890ffda6a5cb332ad3b387bde0476dc551 100644
(file)
--- a/
arch/sh/mm/consistent.c
+++ b/
arch/sh/mm/consistent.c
@@
-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);
/*