Skip to content

Commit

Permalink
sh: Zero-out coherent buffer in consistent_alloc().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Oct 10, 2006
1 parent 0f13804 commit 833abf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sh/mm/consistent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 833abf7

Please sign in to comment.