iommu/s390: Fix incorrect aperture check
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 25 Oct 2022 11:56:55 +0000 (13:56 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 3 Nov 2022 14:40:54 +0000 (15:40 +0100)
commita4d996c2c4b55a42b21d0f7026b2bd6f7396f666
treef560a74306af84087997bfe3ec27fc3da9b7a4e1
parentcbf7827bc5dcfa4301aaea6f57eba9a94dbee7b1
iommu/s390: Fix incorrect aperture check

The domain->geometry.aperture_end specifies the last valid address treat
it as such when checking if a DMA address is valid.

Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20221025115657.1666860-5-schnelle@linux.ibm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/s390-iommu.c