]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
sparc/iommu: use sbus_iommu_unmap_page in sbus_iommu_unmap_sg
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Apr 2019 18:23:40 +0000 (20:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 00:11:56 +0000 (17:11 -0700)
commita7fce1f7ca2f092fe44a17cb158deda97060aab4
treee8463d0235f1040f6e25c57e50f73c129335bce9
parent031abf0b70cb6804eefb11340463a2277e52f853
sparc/iommu: use sbus_iommu_unmap_page in sbus_iommu_unmap_sg

Use the page-level helper instead of duplicating the logic, while also
fixing the incorrect handling of larger than page sized offsets in
the sg variant.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/iommu.c