Thread (4 messages) 4 messages, 4 authors, 2024-08-16

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

From: Shameerali Kolothum Thodi <hidden>
Date: 2024-08-15 13:03:53
Also in: kernel-janitors, linux-iommu, lkml

-----Original Message-----
From: Dan Carpenter <redacted>
Sent: Thursday, August 15, 2024 12:25 PM
To: Shameerali Kolothum Thodi <redacted>
Cc: Will Deacon <will@kernel.org>; Robin Murphy
[off-list ref]; Joerg Roedel [off-list ref]; Jason
Gunthorpe [off-list ref]; Nicolin Chen [off-list ref]; Michael
Shavit [off-list ref]; Mostafa Saleh [off-list ref]; Lu
Baolu [off-list ref]; Kevin Tian [off-list ref]; linux-
arm-kernel@lists.infradead.org; iommu@lists.linux.dev; linux-
kernel@vger.kernel.org; kernel-janitors@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 <redacted>
Reviewed-by: Shameer Kolothum <redacted>

Thanks,
Shameer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help