[Patch Part1 V2 14/20] iommu/vt-d: avoid double free in error recovery path

2013-12-05 Thread Jiang Liu
The g_iommus array will be freed twice when failed to initialize IOMMU devices, which will cause system panic. Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/iommu/intel-iommu.c

[Patch Part1 V2 14/20] iommu/vt-d: avoid double free in error recovery path

2013-12-05 Thread Jiang Liu
The g_iommus array will be freed twice when failed to initialize IOMMU devices, which will cause system panic. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel-iommu.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git