iommu/dma: Handle init_iova_flush_queue() failure in dma-iommu path
authorTom Murphy <murphyt7@tcd.ie>
Thu, 10 Sep 2020 12:25:38 +0000 (13:25 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 18 Sep 2020 15:13:21 +0000 (17:13 +0200)
commitb34e9b0de3c4117e70f09ae354d763cc4dd85bdf
tree5dddaa32a833252e65aee011be02ae75c24d244a
parentba328f82613260a098de7b4aff58743cd8733507
iommu/dma: Handle init_iova_flush_queue() failure in dma-iommu path

The init_iova_flush_queue() function can fail if we run out of memory. Fall
back to noflush queue if it fails.

Signed-off-by: Tom Murphy <murphyt7@tcd.ie>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20200910122539.3662-1-murphyt7@tcd.ie
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c