]> git.baikalelectronics.ru Git - kernel.git/commit
dma-direct: reject highmem pages from dma_alloc_from_contiguous
authorChristoph Hellwig <hch@lst.de>
Sat, 22 Sep 2018 18:47:26 +0000 (20:47 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 1 Dec 2018 16:56:08 +0000 (17:56 +0100)
commit34c96ed43917a381860fa8c704ba583346a52cb1
tree034ad1e559756ddeb333662819a4439a6f817196
parent67bad2372b1952f45ec0249729780ddd6a7e9f2c
dma-direct: reject highmem pages from dma_alloc_from_contiguous

dma_alloc_from_contiguous can return highmem pages depending on the
setup, which a plain non-remapping DMA allocator can't handle.  Detect
this case and fail the allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
kernel/dma/direct.c