Skip to content
Commit d5898291 authored by Marek Szyprowski's avatar Marek Szyprowski
Browse files

ARM: DMA-mapping: fix memory leak in IOMMU dma-mapping implementation



This patch removes page_address() usage in IOMMU-aware dma-mapping
implementation and replaced it with direct use of the cpu virtual address
provided by the caller. page_address() returned incorrect address for
pages remapped in atomic pool, what caused memory leak.

Reported-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Tested-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
parent 60460abf
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