ARM: DMA-mapping: fix memory leak in IOMMU dma-mapping implementation
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 8 Feb 2013 09:54:48 +0000 (10:54 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 25 Feb 2013 14:30:44 +0000 (15:30 +0100)
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: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

No differences found