diff options
| author | ZhaoJinming <zhaojinming@uniontech.com> | 2026-07-23 21:26:43 +0800 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-07-26 12:35:44 +0000 |
| commit | ea0a9d453f60d5d065c377bbd20ab8a78b8620b7 (patch) | |
| tree | 765369e94f6558e80d0cb22b3131daae93e1992c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 414cb6f3ac6217d67963d53866e0fc2288dd3556 (diff) | |
iommu/rockchip: Fix silent probe success when all MMU resources fail
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.
Signed-off-by: ZhaoJinming <zhaojinming@uniontech.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
