diff options
| author | Robin Murphy <[email protected]> | 2025-02-28 15:46:32 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-03-11 13:05:42 +0000 |
| commit | 3832862eb9c4dfa0e80b2522bfaedbc8a43de97d (patch) | |
| tree | 1b5c5e0577c58fd387c44b4d1a514cb614637a26 /drivers/base/platform.c | |
| parent | iommu: Resolve ops in iommu_init_device() (diff) | |
| download | kernel-3832862eb9c4dfa0e80b2522bfaedbc8a43de97d.tar.gz kernel-3832862eb9c4dfa0e80b2522bfaedbc8a43de97d.zip | |
iommu: Keep dev->iommu state consistent
At the moment, if of_iommu_configure() allocates dev->iommu itself via
iommu_fwspec_init(), then suffers a DT parsing failure, it cleans up the
fwspec but leaves the empty dev_iommu hanging around. So far this is
benign (if a tiny bit wasteful), but we'd like to be able to reason
about dev->iommu having a consistent and unambiguous lifecycle. Thus
make sure that the of_iommu cleanup undoes precisely whatever it did.
Signed-off-by: Robin Murphy <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/d219663a3f23001f23d520a883ac622d70b4e642.1740753261.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions
