From: Paul Mundt Date: Tue, 10 Oct 2006 09:33:10 +0000 (+0900) Subject: sh: Zero-out coherent buffer in consistent_alloc(). X-Git-Tag: v2.6.19-rc2~14^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=833abf7fe011c3dfe9bcab405856b73deab17062;p=linux-2.6 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 --- diff --git a/arch/sh/mm/consistent.c b/arch/sh/mm/consistent.c index c81e6b67ad..38c82d890f 100644 --- 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); /*