summaryrefslogtreecommitdiff
path: root/arch/m68k/mm/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/mm/cache.c')
-rw-r--r--arch/m68k/mm/cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/m68k/mm/cache.c b/arch/m68k/mm/cache.c
index 7915be3a0971..5ecb3310e874 100644
--- a/arch/m68k/mm/cache.c
+++ b/arch/m68k/mm/cache.c
@@ -107,7 +107,11 @@ void flush_icache_user_range(unsigned long address, unsigned long endaddr)
void flush_icache_range(unsigned long address, unsigned long endaddr)
{
+ mm_segment_t old_fs = get_fs();
+
+ set_fs(KERNEL_DS);
flush_icache_user_range(address, endaddr);
+ set_fs(old_fs);
}
EXPORT_SYMBOL(flush_icache_range);