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)
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>

No differences found