diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-07-11 02:19:30 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-23 10:04:47 -0400 |
commit | 2a46ddf77c32da1f4137aeb902bc4e1f50582b69 (patch) | |
tree | 4921c8e0a0f52f81ff0c45834b939aa5be9af5a6 /drivers/iommu/fsl_pamu.h | |
parent | 44bde61428f7719c54a2074443edddf0e827296c (diff) |
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>
Diffstat (limited to 'drivers/iommu/fsl_pamu.h')
0 files changed, 0 insertions, 0 deletions