mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
Fix uses of dma_max_pfn() when converting to a limiting address
We must use a 64-bit for this, otherwise overflowed bits get lost, and that can result in a lower than intended value set. Fixes:8e0cb8a1f6("ARM: 7797/1: mmc: Use dma_max_pfn(dev) helper for bounce_limit calculations") Fixes:7d35496dd9("ARM: 7796/1: scsi: Use dma_max_pfn(dev) helper for bounce_limit calculations") Tested-Acked-by: Santosh Shilimkar <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
7c8746a9eb
commit
e83b366487
2 changed files with 2 additions and 2 deletions
|
|
@ -1684,7 +1684,7 @@ u64 scsi_calculate_bounce_limit(struct Scsi_Host *shost)
|
|||
|
||||
host_dev = scsi_get_device(shost);
|
||||
if (host_dev && host_dev->dma_mask)
|
||||
bounce_limit = dma_max_pfn(host_dev) << PAGE_SHIFT;
|
||||
bounce_limit = (u64)dma_max_pfn(host_dev) << PAGE_SHIFT;
|
||||
|
||||
return bounce_limit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue