Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 833abf7f authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0f13804a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -28,6 +28,7 @@ void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *handle)
	split_page(page, order);
	split_page(page, order);


	ret = page_address(page);
	ret = page_address(page);
	memset(ret, 0, size);
	*handle = virt_to_phys(ret);
	*handle = virt_to_phys(ret);


	/*
	/*