[PATCH] iommu/rockchip: Fix silent probe success when all MMU resources fail

Will Deacon will at kernel.org
Sun Jul 26 08:00:56 PDT 2026


On Thu, 23 Jul 2026 21:26:43 +0800, ZhaoJinming wrote:
> When all MMU register mappings fail in rk_iommu_probe(), the error
> path returns PTR_ERR(iommu->bases[0]). However, bases[0] can be NULL
> if the first platform_get_resource() also returned NULL, causing
> PTR_ERR(NULL) to evaluate to 0 and the probe to succeed silently.
> 
> Return -ENODEV directly instead.
> 
> [...]

Applied to iommu (rockchip), thanks!

[1/1] iommu/rockchip: Fix silent probe success when all MMU resources fail
      https://git.kernel.org/iommu/c/ea0a9d453f60

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the Linux-rockchip mailing list