Re: [PATCH v2] iommu/vt-d: Avoid use of NULL after WARN_ON_ONCE

From: Baolu Lu
Date: Wed Jan 01 2025 - 22:13:22 EST


On 11/16/24 02:46, Kees Bakker wrote:
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@xxxxxxxxxxxx>
---
v1 -> v2: change subject to use 'iommu/vt-d:' prefix

drivers/iommu/intel/iommu.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Queued for v6.14. Thanks!