Skip to content
Commit cdf57cab authored by Adrian McMenamin's avatar Adrian McMenamin Committed by Paul Mundt
Browse files

dma-coherent: per-device coherent area is in pages, not bytes.

Commit 58c6d3df

 ("dma-coherent: catch
oversized requests to dma_alloc_from_coherent()") attempted to add a
sanity check to bail out on allocations larger than the coherent area.

Unfortunately when this was implemented, the fact the coherent area
is tracked in pages rather than bytes was overlooked, which subsequently
broke every single dma_alloc_from_coherent() user, forcing the allocation
silently through generic memory instead.

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk >
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 2afb447f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment