Commit fcbd621
iommu/arm-smmu-v3: Clean up more on probe failure
kmemleak noticed that the iopf queue allocated deep down within
arm_smmu_init_structures() can be leaked by a subsequent error return
from arm_smmu_device_probe(). Furthermore, after arm_smmu_device_reset()
we will also leave the SMMU enabled with an empty Stream Table, silently
blocking all DMA. This proves rather annoying for debugging said probe
failure, so let's handle it a bit better by putting the SMMU back into
(more or less) the same state as if it hadn't probed at all.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/5137901958471cf67f2fad5c2229f8a8f1ae901a.1733406914.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>1 parent 97cb1fa commit fcbd621
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4777 | 4777 | | |
4778 | 4778 | | |
4779 | 4779 | | |
4780 | | - | |
| 4780 | + | |
4781 | 4781 | | |
4782 | 4782 | | |
4783 | 4783 | | |
| |||
4788 | 4788 | | |
4789 | 4789 | | |
4790 | 4790 | | |
4791 | | - | |
| 4791 | + | |
4792 | 4792 | | |
4793 | 4793 | | |
4794 | 4794 | | |
4795 | 4795 | | |
4796 | 4796 | | |
4797 | | - | |
| 4797 | + | |
4798 | 4798 | | |
4799 | 4799 | | |
4800 | 4800 | | |
4801 | 4801 | | |
4802 | | - | |
4803 | | - | |
| 4802 | + | |
4804 | 4803 | | |
4805 | 4804 | | |
4806 | 4805 | | |
| 4806 | + | |
| 4807 | + | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
| 4813 | + | |
4807 | 4814 | | |
4808 | 4815 | | |
4809 | 4816 | | |
| |||
0 commit comments