[PATCH 0/2] iommu: Fix domain check on device release

From: Lu Baolu
Date: Fri Feb 23 2024 - 00:19:09 EST


This is a follow-up to the discussion thread here:

https://lore.kernel.org/linux-iommu/20240221154012.GC13491@xxxxxxxx/

It fixes a NULL pointer reference in the Intel iommu driver and
strengthens the iommu core to possibly prevent similar failures in other
iommu drivers.

Best regards,
baolu

Lu Baolu (2):
iommu: Add static iommu_ops->release_domain
iommu/vt-d: Fix NULL domain on device release

include/linux/iommu.h | 1 +
drivers/iommu/intel/iommu.c | 26 +-------------------------
drivers/iommu/iommu.c | 12 ++++++++++++
3 files changed, 14 insertions(+), 25 deletions(-)

--
2.34.1