diff options
| author | Mostafa Saleh <smostafa@google.com> | 2026-09-24 08:56:14 +0000 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-10-02 15:48:09 +0000 |
| commit | 388986bfc540e98f3f7ca1b6bc8703fc43e279d1 (patch) | |
| tree | 90573685884a442ef4d37a05ffed6dd5d97da220 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ce58940ccc3d1a377d238d93666c140405f8ce05 (diff) | |
iommu/arm-smmu-v3-test: Add missing error checks for inv array
arm_smmu_invs_merge() and arm_smmu_invs_alloc() can return NULL or
errors which are checked by the driver but not the test.
Add KUNIT_ASSERT_NOT_ERR_OR_NULL() after calling them to fail the
test instead of accessing NULL or ERR pointers.
Fixes: 15a2a5645ad7 ("iommu/arm-smmu-v3: Introduce a per-domain arm_smmu_invs array")
Reported-by: Sashiko <>
Signed-off-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.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
