summaryrefslogtreecommitdiff
path: root/drivers/Makefile
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2017-05-15 16:01:30 +0100
committerJoerg Roedel <jroedel@suse.de>2017-05-17 14:35:29 +0200
commit1cc896ed61fa0441dffef726ff678fd82a9e6265 (patch)
tree8e06a8f429c7d1f362bbfb7c2011a2b0c3773c7f /drivers/Makefile
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
iommu/dma: Don't touch invalid iova_domain members
When __iommu_dma_map() and iommu_dma_free_iova() are called from iommu_dma_get_msi_page(), various iova_*() helpers are still invoked in the process, whcih is unwise since they access a different member of the union (the iova_domain) from that which was last written, and there's no guarantee that sensible values will result anyway. CLean up the code paths that are valid for an MSI cookie to ensure we only do iova_domain-specific things when we're actually dealing with one. Fixes: a44e6657585b ("iommu/dma: Clean up MSI IOVA allocation") Reported-by: Nate Watterson <nwatters@codeaurora.org> Tested-by: Shanker Donthineni <shankerd@codeaurora.org> Tested-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Tested-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/Makefile')
0 files changed, 0 insertions, 0 deletions