]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/vt-d: Avoid use of NULL after WARN_ON_ONCE
authorKees Bakker <kees@ijzerbout.nl>
Tue, 7 Jan 2025 02:17:42 +0000 (10:17 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 7 Jan 2025 08:30:50 +0000 (09:30 +0100)
commit60f030f7418d3f1d94f2fb207fe3080e1844630b
treef470900f5d2aa225eb342fabb7c528300dda1f95
parent78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
iommu/vt-d: Avoid use of NULL after WARN_ON_ONCE

There is a WARN_ON_ONCE to catch an unlikely situation when
domain_remove_dev_pasid can't find the `pasid`. In case it nevertheless
happens we must avoid using a NULL pointer.

Signed-off-by: Kees Bakker <kees@ijzerbout.nl>
Link: https://lore.kernel.org/r/20241218201048.E544818E57E@bout3.ijzerbout.nl
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c