]> bbs.cooldavid.org Git - net-next-2.6.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)
commita86c44d48a03dcd73972ddadb55a77e6b308fa0b
treefef441538decf37de14808f889b9177d56f478df
parentefdfb2b118cc11c88adcbcb8036795eb34f419a8
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