diff options
author | Robin Murphy <[email protected]> | 2020-02-18 18:12:41 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2020-02-19 11:55:48 +0100 |
commit | faf305c51aeabd1ea2d7131e798ef5f55f4a7750 (patch) | |
tree | ca7bcab187843da3d6dcf62cac5a15408c0dca49 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3dfee47b215e49788cfc80e474820ea2e948c031 (diff) |
iommu/qcom: Fix bogus detach logic
Currently, the implementation of qcom_iommu_domain_free() is guaranteed
to do one of two things: WARN() and leak everything, or dereference NULL
and crash. That alone is terrible, but in fact the whole idea of trying
to track the liveness of a domain via the qcom_domain->iommu pointer as
a sanity check is full of fundamentally flawed assumptions. Make things
robust and actually functional by not trying to be quite so clever.
Reported-by: Brian Masney <[email protected]>
Tested-by: Brian Masney <[email protected]>
Reported-by: Naresh Kamboju <[email protected]>
Fixes: 0ae349a0f33f ("iommu/qcom: Add qcom_iommu")
Signed-off-by: Robin Murphy <[email protected]>
Tested-by: Stephan Gerhold <[email protected]>
Cc: [email protected] # v4.14+
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions