summaryrefslogtreecommitdiff
path: root/crypto/eseqiv.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2015-03-27 11:33:43 +0300
committerRalf Baechle <ralf@linux-mips.org>2015-09-30 17:27:39 +0300
commit53960059d56ecef67d4ddd546731623641a3d2d1 (patch)
treecb02dc12f055cb377cefb98b982ec8f6ef9387e0 /crypto/eseqiv.c
parent96fc7a9cee671f10e14aaca44833696a71f1ebdb (diff)
downloadlinux-53960059d56ecef67d4ddd546731623641a3d2d1.tar.xz
MIPS: dma-default: Fix 32-bit fall back to GFP_DMA
If there is a DMA zone (usually 24bit = 16MB I believe), but no DMA32 zone, as is the case for some 32-bit kernels, then massage_gfp_flags() will cause DMA memory allocated for devices with a 32..63-bit coherent_dma_mask to fall back to using __GFP_DMA, even though there may only be 32-bits of physical address available anyway. Correct that case to compare against a mask the size of phys_addr_t instead of always using a 64-bit mask. Signed-off-by: James Hogan <james.hogan@imgtec.com> Fixes: a2e715a86c6d ("MIPS: DMA: Fix computation of DMA flags from device's coherent_dma_mask.") Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Cc: <stable@vger.kernel.org> # 2.6.36+ Patchwork: https://patchwork.linux-mips.org/patch/9610/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'crypto/eseqiv.c')
0 files changed, 0 insertions, 0 deletions