Skip to content

Commit

Permalink
kernel/dma: remove unnecessary unmap_kernel_range
Browse files Browse the repository at this point in the history
vunmap will remove ptes.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Nicholas Piggin <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Cédric Le Goater <[email protected]>
Cc: Uladzislau Rezki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
npiggin authored and torvalds committed Apr 30, 2021
1 parent b67177e commit e82b9b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/dma/remap.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,5 @@ void dma_common_free_remap(void *cpu_addr, size_t size)
return;
}

unmap_kernel_range((unsigned long)cpu_addr, PAGE_ALIGN(size));
vunmap(cpu_addr);
}

0 comments on commit e82b9b3

Please sign in to comment.