summaryrefslogtreecommitdiff
path: root/sound/hda
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2020-02-18 18:12:41 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-28 17:22:12 +0100
commitb76e00b67dc61d5bbd0cc21f51d14703c767510d (patch)
tree05f0b40b7b1a5a27831efc755598e9637320d979 /sound/hda
parentf22dcb31727e3cf31a9143437f134ea133021982 (diff)
iommu/qcom: Fix bogus detach logic
commit faf305c51aeabd1ea2d7131e798ef5f55f4a7750 upstream. 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 <masneyb@onstation.org> Tested-by: Brian Masney <masneyb@onstation.org> Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org> Fixes: 0ae349a0f33f ("iommu/qcom: Add qcom_iommu") Signed-off-by: Robin Murphy <robin.murphy@arm.com> Tested-by: Stephan Gerhold <stephan@gerhold.net> Cc: stable@vger.kernel.org # v4.14+ Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/hda')
0 files changed, 0 insertions, 0 deletions