diff options
| author | Robin Murphy <[email protected]> | 2025-02-27 14:47:47 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-03-11 13:05:39 +0000 |
| commit | 29c6e1c2b923b43e8082bba5c6675185a8fe305a (patch) | |
| tree | 1f864be1281660bd8d41ff1c7b1bea115ecb6150 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | iommu/dma: Remove redundant locking (diff) | |
| download | kernel-29c6e1c2b923b43e8082bba5c6675185a8fe305a.tar.gz kernel-29c6e1c2b923b43e8082bba5c6675185a8fe305a.zip | |
iommu: Unexport iommu_fwspec_free()
The drivers doing their own fwspec parsing have no need to call
iommu_fwspec_free() since fwspecs were moved into dev_iommu, as
returning an error from .probe_device will tear down the whole lot
anyway. Move it into the private interface now that it only serves
for of_iommu to clean up in an error case.
I have no idea what mtk_v1 was doing in effectively guaranteeing
a NULL fwspec would be dereferenced if no "iommus" DT property was
found, so add a check for that to at least make the code look sane.
Signed-off-by: Robin Murphy <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/36e245489361de2d13db22a510fa5c79e7126278.1740667667.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
