Revert "iommu/amd: Remove the leftover of bypass support"
authorJoerg Roedel <jroedel@suse.de>
Mon, 6 May 2019 12:24:18 +0000 (14:24 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 6 May 2019 12:25:57 +0000 (14:25 +0200)
commit89736a0ee81d14439d085c8d4653bc1d86fe64d8
treed74a05a2b111c8aff2dab35ca2a6a438baf01cd8
parent1a1079011da32db87e19fcb39e70d082f89da921
Revert "iommu/amd: Remove the leftover of bypass support"

This reverts commit 7a5dbf3ab2f04905cf8468c66fcdbfb643068bcb.

This commit not only removes the leftovers of bypass
support, it also mostly removes the checking of the return
value of the get_domain() function. This can lead to silent
data corruption bugs when a device is not attached to its
dma_ops domain and a DMA-API function is called for that
device.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c