aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/sh/mm/pg-mmu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/mm/pg-mmu.c b/arch/sh/mm/pg-mmu.c
index 8602f68af4c..32351206edd 100644
--- a/arch/sh/mm/pg-mmu.c
+++ b/arch/sh/mm/pg-mmu.c
@@ -37,6 +37,8 @@ static inline void *kmap_coherent(struct page *page, unsigned long addr)
unsigned long vaddr, flags;
pte_t pte;
+ BUG_ON(test_bit(PG_dcache_dirty, &page->flags));
+
inc_preempt_count();
idx = (addr & current_cpu_data.dcache.alias_mask) >> PAGE_SHIFT;