]> git.baikalelectronics.ru Git - kernel.git/commit
Fix uses of dma_max_pfn() when converting to a limiting address
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 11 Feb 2014 17:11:04 +0000 (17:11 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Feb 2014 23:08:41 +0000 (23:08 +0000)
commitc33c2887c57ed11684e57935312ae06300277798
tree2678fe6ad8933a6bc4440d1a2d91e4eac9ba9e4d
parentd21ac54667d941065080723252d1146548c555ad
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: 7588bb8e3641 ("ARM: 7797/1: mmc: Use dma_max_pfn(dev) helper for bounce_limit calculations")
Fixes: 3c977fc6f96e ("ARM: 7796/1: scsi: Use dma_max_pfn(dev) helper for bounce_limit calculations")
Tested-Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/card/queue.c
drivers/scsi/scsi_lib.c