diff options
| author | Shameer Kolothum <[email protected]> | 2021-03-03 17:36:11 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2021-03-18 10:48:10 +0100 |
| commit | b9abb19fa5fd2d8a4be61c6cd4b2a48aa1a17f9c (patch) | |
| tree | 5b952707b8b623121a2ffe86d65b2d89b80d0240 /tools/perf/scripts/python | |
| parent | 1e28eed17697bcf343c6743f0028cc3b5dd88bf0 (diff) | |
iommu: Check dev->iommu in iommu_dev_xxx functions
The device iommu probe/attach might have failed leaving dev->iommu
to NULL and device drivers may still invoke these functions resulting
in a crash in iommu vendor driver code.
Hence make sure we check that.
Fixes: a3a195929d40 ("iommu: Add APIs for multiple domains per device")
Signed-off-by: Shameer Kolothum <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions