Jiang Liu 2a46ddf77c iommu/vt-d: Fix possible invalid memory access caused by free_dmar_iommu()
Static identity and virtual machine domains may be cached in
iommu->domain_ids array after corresponding IOMMUs have been removed
from domain->iommu_bmp. So we should check domain->iommu_bmp before
decreasing domain->iommu_count in function free_dmar_iommu(), otherwise
it may cause free of inuse domain data structure.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2014-07-23 16:04:47 +02:00
..
2014-07-04 12:35:59 +02:00
2014-07-04 12:35:59 +02:00
2014-07-07 10:36:59 +02:00
2014-07-07 10:36:59 +02:00
2014-07-23 16:04:37 +02:00
2014-07-07 10:36:59 +02:00
2014-07-07 10:36:59 +02:00
2014-07-04 12:35:59 +02:00
2014-07-07 10:36:59 +02:00
2014-01-07 15:16:27 +01:00
2014-07-07 10:36:59 +02:00
2014-07-07 10:36:59 +02:00
2014-07-07 10:36:59 +02:00