[PATCH] iommu/arm-smmu-v3: Fix a NULL vs IS_ERR() check

Shameerali Kolothum Thodi shameerali.kolothum.thodi at huawei.com
Thu Aug 15 06:03:50 PDT 2024



> -----Original Message-----
> From: Dan Carpenter <dan.carpenter at linaro.org>
> Sent: Thursday, August 15, 2024 12:25 PM
> To: Shameerali Kolothum Thodi <shameerali.kolothum.thodi at huawei.com>
> Cc: Will Deacon <will at kernel.org>; Robin Murphy
> <robin.murphy at arm.com>; Joerg Roedel <joro at 8bytes.org>; Jason
> Gunthorpe <jgg at ziepe.ca>; Nicolin Chen <nicolinc at nvidia.com>; Michael
> Shavit <mshavit at google.com>; Mostafa Saleh <smostafa at google.com>; Lu
> Baolu <baolu.lu at linux.intel.com>; Kevin Tian <kevin.tian at intel.com>; linux-
> arm-kernel at lists.infradead.org; iommu at lists.linux.dev; linux-
> kernel at vger.kernel.org; kernel-janitors at vger.kernel.org
> Subject: [PATCH] iommu/arm-smmu-v3: Fix a NULL vs IS_ERR() check
> 
> 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 at linaro.org>

Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi at huawei.com>

Thanks,
Shameer



More information about the linux-arm-kernel mailing list