diff options
author | Murali Karicheri <m-karicheri2@ti.com> | 2015-03-03 18:52:14 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-03-12 17:43:09 +0100 |
commit | 22b3c181c6c324a46f71aae806d8ddbe61d25761 (patch) | |
tree | cc563aa0518c429b8bd6ebcc7742fe44b3e8eca7 /drivers/of/device.c | |
parent | PCI: Update DMA configuration from DT (diff) | |
download | linux-22b3c181c6c324a46f71aae806d8ddbe61d25761.tar.xz linux-22b3c181c6c324a46f71aae806d8ddbe61d25761.zip |
arm: dma-mapping: limit IOMMU mapping size
arm_iommu_create_mapping() has size parameter of size_t and
arm_setup_iommu_dma_ops() can take a value higher than that
when this is called from the OF code. So limit the size to
SIZE_MAX.
Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> (AMD Seattle)
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
CC: Joerg Roedel <joro@8bytes.org>
CC: Grant Likely <grant.likely@linaro.org>
CC: Rob Herring <robh+dt@kernel.org>
CC: Russell King <linux@arm.linux.org.uk>
CC: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/of/device.c')
0 files changed, 0 insertions, 0 deletions