]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Avoid duplicated pci dma alias consideration
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 9 Jul 2019 05:22:45 +0000 (13:22 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 22 Jul 2019 15:16:24 +0000 (17:16 +0200)
commit0cdc22fdad747589e29f5bce18a1ac52c8e517e3
tree9e226486ee963fe35a7663c6e3ac144a0f261a3c
parentbf242f99b85ae15f6bcb1d7dd1767d0b7b906781
iommu/vt-d: Avoid duplicated pci dma alias consideration

As we have abandoned the home-made lazy domain allocation
and delegated the DMA domain life cycle up to the default
domain mechanism defined in the generic iommu layer, we
needn't consider pci alias anymore when mapping/unmapping
the context entries. Without this fix, we see kernel NULL
pointer dereference during pci device hot-plug test.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Fixes: ba67bc47be789 ("iommu/vt-d: Delegate the dma domain to upper layer")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reported-and-tested-by: Xu Pengfei <pengfei.xu@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c