iommu/vt-d: Remove BUG_ON in map/unmap()
authorTina Zhang <tina.zhang@intel.com>
Thu, 13 Apr 2023 04:06:43 +0000 (12:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 10:05:52 +0000 (12:05 +0200)
commitcbf2f9e8badd483e2ee17a56ad8dbd1cfdcead20
treeeeea877ebd4bbaf4dea6fc32bbe0ff1fac52be32
parent998d4c2db30c7279ce6070faf06b914c98f2ae30
iommu/vt-d: Remove BUG_ON in map/unmap()

Domain map/unmap with invalid parameters shouldn't crash the kernel.
Therefore, using if() replaces the BUG_ON.

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Link: https://lore.kernel.org/r/20230406065944.2773296-6-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