]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/ioda: Handle failures correctly in pnv_pci_ioda_iommu_bypass_supported()
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 10 Apr 2019 06:48:00 +0000 (16:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Apr 2019 13:23:24 +0000 (23:23 +1000)
commitf20f2c618b813832ee25d3d0c56c6a8c9c584f7e
treeba9205f14e0fdee3980e9dcc70bf11e276d0c6e6
parent14942839bde12416e6e65b979323b2c01b31e965
powerpc/powernv/ioda: Handle failures correctly in pnv_pci_ioda_iommu_bypass_supported()

When the return value type was changed from int to bool, few places
were left unchanged, this fixes them. We did not hit these failures as
the first one is not happening at all and the second one is little
more likely to happen if the user switches a 33..58bit DMA capable
device between the VFIO and vendor drivers and there are not so many
of these.

Fixes: 61e994fbc468 ("powerpc/powernv: use the generic iommu bypass code")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c