Re: [PATCH v1] iommu: Avoid use of NULL after WARN_ON_ONCE

From: Joerg Roedel
Date: Wed Dec 18 2024 - 03:34:38 EST


On Fri, Nov 15, 2024 at 07:46:25PM +0100, 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>
> ---
> drivers/iommu/intel/iommu.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)

This patch is Intel VT-d specific, please use the 'iommu/vt-d:' prefix
in the subject line.