[Patch Part1 V2 13/20] iommu/vt-d: keep shared resources when failed to initialize iommu devices

2013-12-05 Thread Jiang Liu
Data structure drhd->iommu is shared between DMA remapping driver and interrupt remapping driver, so DMA remapping driver shouldn't release drhd->iommu when it failed to initialize IOMMU devices. Otherwise it may cause invalid memory access to the interrupt remapping driver. Sample stack dump: [

[Patch Part1 V2 13/20] iommu/vt-d: keep shared resources when failed to initialize iommu devices

2013-12-05 Thread Jiang Liu
Data structure drhd-iommu is shared between DMA remapping driver and interrupt remapping driver, so DMA remapping driver shouldn't release drhd-iommu when it failed to initialize IOMMU devices. Otherwise it may cause invalid memory access to the interrupt remapping driver. Sample stack dump: [