iommu/vt-d: Stop dmar_insert_dev_info() freeing domains on losing race
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 9 Mar 2014 20:11:33 +0000 (13:11 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 24 Mar 2014 14:06:39 +0000 (14:06 +0000)
By moving this into get_domain_for_dev() we can make dmar_insert_dev_info()
suitable for use with "special" domains such as the si_domain, which
currently use domain_add_dev_info().

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-iommu.c

Simple merge