]> git.baikalelectronics.ru Git - kernel.git/commit
arm: mach-msm: fix error handling in msm_iommu_probe()
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 17 Oct 2010 14:51:37 +0000 (18:51 +0400)
committerDaniel Walker <dwalker@codeaurora.org>
Wed, 27 Oct 2010 21:24:02 +0000 (14:24 -0700)
commite8d5057e7c6a3ca66ebaee8ce6890f86a082e231
treefef441538decf37de14808f889b9177d56f478df
parente267c66bc61c8d97094220a2d4659f983344726c
arm: mach-msm: fix error handling in msm_iommu_probe()

msm_iommu_probe() didn't free mem_region and mapped IO.
Also if request_mem_region() failed then error handling
code dereferenced NULL pointer.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Acked-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
arch/arm/mach-msm/iommu_dev.c