diff options
author | Nicholas Piggin <[email protected]> | 2021-04-29 22:58:55 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-04-30 11:20:40 -0700 |
commit | e82b9b3086b93857b1b46341714751b123a4d08b (patch) | |
tree | 562e014e3758318c0bc2de331f4a0cca81b76a68 | |
parent | b67177ecd956333029dbc1a4971a857fee0ccbb1 (diff) |
kernel/dma: remove unnecessary unmap_kernel_range
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]>
-rw-r--r-- | kernel/dma/remap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/dma/remap.c b/kernel/dma/remap.c index 905c3fa005f1..b4526668072e 100644 --- a/kernel/dma/remap.c +++ b/kernel/dma/remap.c @@ -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); } |