]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: Warn on NULL device structure for dma APIs
authorLaura Abbott <lauraa@codeaurora.org>
Thu, 12 Dec 2013 19:28:32 +0000 (19:28 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 19 Dec 2013 17:44:08 +0000 (17:44 +0000)
commitc666e8d5cae745b1515898f8b7a033c468a899d0
tree2ad27dd51e4ef4d061e6493bf6a3a293ffc8429f
parent4bff28ccda2b7a3fbdf8e80aef7a599284681dc6
arm64: Warn on NULL device structure for dma APIs

Although parts of the DMA apis may properly check for NULL devices,
there may be some places that don't. Rather than fix up all the
possible locations, just require a non-NULL device structure to be
used for allocating/freeing.

Cc: Will Deacon <will.deacon@arm.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
[catalin.marinas@arm.com: s/WARN/WARN_ONCE/]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/dma-mapping.c