iommu: Initialize domain->handler in iommu_domain_alloc()
authorKyongHo Cho <pullip.cho@samsung.com>
Fri, 16 Dec 2011 12:38:25 +0000 (21:38 +0900)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 16 Dec 2011 14:05:13 +0000 (15:05 +0100)
commit8bd6960c6ae65d7f92bfb708154ee813417d7b26
tree97ef8b4067aac573b76b1c6cc58588aee30e1f56
parentb2c1639135c0fc1560f3fe9a3a83f2c8265a9e02
iommu: Initialize domain->handler in iommu_domain_alloc()

Since it is not guaranteed that an iommu driver initializes in its
domain_init() function, it must be initialized with NULL to prevent
calling a function in an arbitrary location when iommu fault occurred.

Signed-off-by: KyongHo Cho <pullip.cho@samsung.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/iommu.c