commit | 371f0f085f629fc0f66695f572373ca4445a67ad | [log] [tgz] |
---|---|---|
author | Marek Szyprowski <m.szyprowski@samsung.com> | Fri Aug 28 09:41:39 2015 +0100 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Sat Oct 03 16:36:45 2015 +0100 |
tree | 502ee1051eeaf183b6581739a77880635cd4c62e | |
parent | db695c0509d6ec9046ee5e4c520a19fa17d9fce2 [diff] |
ARM: 8426/1: dma-mapping: add missing range check in dma_mmap() dma_mmap() function in IOMMU-based dma-mapping implementation lacked a check for valid range of mmap parameters (offset and buffer size), what might have caused access beyond the allocated buffer. This patch fixes this issue. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Cc: stable@vger.kernel.org # v3.6+ Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>