Revert "Revert "swiotlb: don't modify orig_addr in swiotlb_tbl_sync_single""

This reverts commit 2201384121.

Bring back the commit in 5.10.35 that broke the kabi.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I14d47f0fc68b35b08323b26eb045b5cdda845cf0
This commit is contained in:
Greg Kroah-Hartman 2021-05-10 14:21:12 +02:00 committed by Todd Kjos
commit a4094253bf

View file

@ -644,7 +644,6 @@ void swiotlb_tbl_sync_single(struct device *hwdev, phys_addr_t tlb_addr,
if (orig_addr == INVALID_PHYS_ADDR)
return;
orig_addr += (unsigned long)tlb_addr & (IO_TLB_SIZE - 1);
switch (target) {
case SYNC_FOR_CPU: