iommu/vt-d: Remove BUG_ON when domain->pgd is NULL
authorTina Zhang <tina.zhang@intel.com>
Thu, 13 Apr 2023 04:06:42 +0000 (12:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 10:05:52 +0000 (12:05 +0200)
commit998d4c2db30c7279ce6070faf06b914c98f2ae30
tree3bd3675b7b9ad6941f65c86cf63491192b6a7a17
parent4a627a2593b457336047c6803b5d5c097183a9ca
iommu/vt-d: Remove BUG_ON when domain->pgd is NULL

When performing domain_context_mapping or getting dma_pte of a pfn, the
availability of the domain page table directory is ensured. Therefore,
the domain->pgd checkings are unnecessary.

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Link: https://lore.kernel.org/r/20230406065944.2773296-5-tina.zhang@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c