diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 0f76cca32a1c..030a544e6602 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -2128,17 +2128,6 @@ static void vm_remove_mappings(struct vm_struct *area, int deallocate_pages) | |||
2128 | int flush_dmap = 0; | 2128 | int flush_dmap = 0; |
2129 | int i; | 2129 | int i; |
2130 | 2130 | ||
2131 | /* | ||
2132 | * The below block can be removed when all architectures that have | ||
2133 | * direct map permissions also have set_direct_map_() implementations. | ||
2134 | * This is concerned with resetting the direct map any an vm alias with | ||
2135 | * execute permissions, without leaving a RW+X window. | ||
2136 | */ | ||
2137 | if (flush_reset && !IS_ENABLED(CONFIG_ARCH_HAS_SET_DIRECT_MAP)) { | ||
2138 | set_memory_nx((unsigned long)area->addr, area->nr_pages); | ||
2139 | set_memory_rw((unsigned long)area->addr, area->nr_pages); | ||
2140 | } | ||
2141 | |||
2142 | remove_vm_area(area->addr); | 2131 | remove_vm_area(area->addr); |
2143 | 2132 | ||
2144 | /* If this is not VM_FLUSH_RESET_PERMS memory, no need for the below. */ | 2133 | /* If this is not VM_FLUSH_RESET_PERMS memory, no need for the below. */ |