summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2019-10-30 00:34:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-04 21:16:59 +0300
commit686dd313a2caaa374f21087cce768d44b534a170 (patch)
tree63cd55bf7dd4fbd0353d06010ce90ace713e92f4 /include/video
parent34205ed59e98a3ce6bab5b2085dcb33c8c0ca98e (diff)
downloadlinux-686dd313a2caaa374f21087cce768d44b534a170.tar.xz
dma-mapping: Add vmap checks to dma_map_single()
[ Upstream commit 4544b9f25e70eae9f70a243de0cc802aa5c8cb69 ] As we've seen from USB and other areas[1], we need to always do runtime checks for DMA operating on memory regions that might be remapped. This adds vmap checks (similar to those already in USB but missing in other places) into dma_map_single() so all callers benefit from the checking. [1] https://git.kernel.org/linus/3840c5b78803b2b6cc1ff820100a74a092c40cbb Suggested-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Kees Cook <keescook@chromium.org> [hch: fixed the printk message] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/video')
0 files changed, 0 insertions, 0 deletions