diff options
| author | Ryan Huang <tzukui@google.com> | 2025-11-07 11:09:17 -0800 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2025-11-24 16:56:31 +0000 |
| commit | 5941f0e0c1e0be03ebc15b461f64208f5250d3d9 (patch) | |
| tree | d6debfb32ae73f70f31a66489d78ffd77a7a7652 /tools/lib/python/kdoc/kdoc_re.py | |
| parent | 617937d4d55337475a1d4fc7e3cee1cb3d2f0052 (diff) | |
iommu/arm-smmu-v3: Fix error check in arm_smmu_alloc_cd_tables
In arm_smmu_alloc_cd_tables(), the error check following the
dma_alloc_coherent() for cd_table->l2.l1tab incorrectly tests
cd_table->l2.l2ptrs.
This means an allocation failure for l1tab goes undetected, causing
the function to return 0 (success) erroneously.
Correct the check to test cd_table->l2.l1tab.
Fixes: e3b1be2e73db ("iommu/arm-smmu-v3: Reorganize struct arm_smmu_ctx_desc_cfg")
Signed-off-by: Daniel Mentz <danielmentz@google.com>
Signed-off-by: Ryan Huang <tzukui@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
