]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 8 Feb 2013 10:48:35 +0000 (11:48 +0100)
commitee06158e9cf9e5261da23ff39a0c372bb532fc77
treebc6f720777c85a7a8e3ba2f8cbd364278b9669ba
parentd4e87bfbea4087cbd1747ce01aaa74abe6bac326
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: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
arch/arm/mm/dma-mapping.c