Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd940499 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm: dma-mapping: flush highmem mappings"

parents 6f524acc 65663e7e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -580,6 +580,10 @@ static void *__alloc_from_contiguous(struct device *dev, size_t size,
			 * clients trying to use the address incorrectly
			 */
			ptr = (void *)NO_KERNEL_MAPPING_DUMMY;

			/* also flush out the stale highmem mappings */
			kmap_flush_unused();
			kmap_atomic_flush_unused();
		} else {
			ptr = __dma_alloc_remap(page, size, GFP_KERNEL, prot,
						caller);