diff options
Diffstat (limited to 'kernel/arch/sh/mm')
-rw-r--r-- | kernel/arch/sh/mm/kmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/arch/sh/mm/kmap.c b/kernel/arch/sh/mm/kmap.c index ec29e14ec..bf25d7c79 100644 --- a/kernel/arch/sh/mm/kmap.c +++ b/kernel/arch/sh/mm/kmap.c @@ -36,6 +36,7 @@ void *kmap_coherent(struct page *page, unsigned long addr) BUG_ON(!test_bit(PG_dcache_clean, &page->flags)); + preempt_disable(); pagefault_disable(); idx = FIX_CMAP_END - @@ -64,4 +65,5 @@ void kunmap_coherent(void *kvaddr) } pagefault_enable(); + preempt_enable(); } |