[PATCH 1/2] iommu: Don't remove device when no iommu_group associated

2013-08-16 Thread Wei Yang
In some cases, one device may not associated with any iommu_group. For example, not enough DMA address space. For those devices, kernel will crash when try to remove it from an iommu_group. This patch do the check before remove it. Signed-off-by: Wei Yang --- drivers/iommu/iommu.c |3 +++

[PATCH 1/2] iommu: Don't remove device when no iommu_group associated

2013-08-16 Thread Wei Yang
In some cases, one device may not associated with any iommu_group. For example, not enough DMA address space. For those devices, kernel will crash when try to remove it from an iommu_group. This patch do the check before remove it. Signed-off-by: Wei Yang weiy...@linux.vnet.ibm.com ---