diff options
author | Will Deacon <[email protected]> | 2019-12-19 12:03:41 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2019-12-23 14:06:05 +0100 |
commit | 25f003de987aed630db265ceae9cd978537a3f80 (patch) | |
tree | 6a53d13ae038b397f968766a1a5c7fa9b1b5fc71 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1a373a78b8e2fae1d61dd9c5ed22472045d83d24 (diff) |
drivers/iommu: Take a ref to the IOMMU driver prior to ->add_device()
To avoid accidental removal of an active IOMMU driver module, take a
reference to the driver module in 'iommu_probe_device()' immediately
prior to invoking the '->add_device()' callback and hold it until the
after the device has been removed by '->remove_device()'.
Suggested-by: Joerg Roedel <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Tested-by: John Garry <[email protected]> # smmu v3
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions