summaryrefslogtreecommitdiff
path: root/mm/cleancache.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-29 17:16:42 +0300
committerChristoph Hellwig <hch@lst.de>2019-06-25 08:54:06 +0300
commit4a54d16f615f41489b2ecbc940f6eb2618ddafd6 (patch)
treee12a8aa22cac1d57f7135ada2284801a5f1db8b9 /mm/cleancache.c
parent591fcf3b301b3396d96f082298a9e8403c027d3f (diff)
downloadlinux-4a54d16f615f41489b2ecbc940f6eb2618ddafd6.tar.xz
dma-mapping: truncate dma masks to what dma_addr_t can hold
The dma masks in struct device are always 64-bits wide. But for builds using a 32-bit dma_addr_t we need to ensure we don't store an unsupportable value. Before Linux 5.0 this was handled at least by the ARM dma mapping code by never allowing to set a larger dma_mask, but these days we allow the driver to just set the largest supported value and never fall back to a smaller one. Ensure this always works by truncating the value. Fixes: 9eb9e96e97b3 ("Documentation/DMA-API-HOWTO: update dma_mask sections") Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'mm/cleancache.c')
0 files changed, 0 insertions, 0 deletions