msm: Add null-pointer checks for domains

Add check for null-pointer before passing domain pointer
into map and unmap api to avoid null-pointer deferences.

CRs-fixed: 493503
Change-Id: I185deb9f2878ef62601eb4ca1d2b71f892ca0185
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
msm: fix reading of domain partitions

Domain partitions are not initialized propertly when there is more
than one partition. The partition information for every other
partition will be correct while the others will have uninitialized
values.

Fix the initialization code to ensure all partitions are initialized
propertly.

Change-Id: I7fd1c51f0ec107b0a3d7d04c3686c0879b06104c
Signed-off-by: Shalaj Jain <shalajj@codeaurora.org>
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
fix derps

Change-Id: I327cecbd3159621b7655f51033f14f87589c03ed
msm: Add export symbol for msm_get_iommu_domain

Modules may need to access the domain information. Add the
appropriate export.

Change-Id: I56ddb6da06c6878ce0c4d82e759c106f2c74ef66
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>