Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'dma-mapping-5.4-1' of git://git.infradead.org/users/hch/dma-mapping

Pull dma-mapping regression fix from Christoph Hellwig:
"Revert an incorret hunk from a patch that caused problems on various
arm boards (Andrey Smirnov)"

* tag 'dma-mapping-5.4-1' of git://git.infradead.org/users/hch/dma-mapping:
dma-mapping: fix false positive warnings in dma_common_free_remap()

+2 -2
+2 -2
kernel/dma/remap.c
··· 87 87 */ 88 88 void dma_common_free_remap(void *cpu_addr, size_t size) 89 89 { 90 - struct page **pages = dma_common_find_pages(cpu_addr); 90 + struct vm_struct *area = find_vm_area(cpu_addr); 91 91 92 - if (!pages) { 92 + if (!area || area->flags != VM_DMA_COHERENT) { 93 93 WARN(1, "trying to free invalid coherent area: %p\n", cpu_addr); 94 94 return; 95 95 }