Re: [PATCH] iommu/arm-smmu-v3: Fix a NULL vs IS_ERR() check
From: Jason Gunthorpe
Date: Thu Aug 15 2024 - 08:07:01 EST
On Thu, Aug 15, 2024 at 02:25:00PM +0300, Dan Carpenter wrote:
> The arm_smmu_domain_alloc() function returns error pointers on error. It
> doesn't return NULL. Update the error checking to match.
>
> Fixes: 52acd7d8a413 ("iommu/arm-smmu-v3: Add support for domain_alloc_user fn")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> ---
> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Yeah, looks like this was missed during a rebase
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
Jason