29 lines
903 B
Diff
29 lines
903 B
Diff
From a3e5089d38487019199ed908d9720d9ce24deef3 Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
Date: Mon, 11 Mar 2013 17:09:55 +0100
|
|
Subject: [PATCH 262/365] x86/highmem: Add a "already used pte" check
|
|
|
|
This is a copy from kmap_atomic_prot().
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
---
|
|
arch/x86/mm/iomap_32.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/arch/x86/mm/iomap_32.c b/arch/x86/mm/iomap_32.c
|
|
index 2620fb55ece1..585f6829653b 100644
|
|
--- a/arch/x86/mm/iomap_32.c
|
|
+++ b/arch/x86/mm/iomap_32.c
|
|
@@ -66,6 +66,8 @@ void *kmap_atomic_prot_pfn(unsigned long pfn, pgprot_t prot)
|
|
type = kmap_atomic_idx_push();
|
|
idx = type + KM_TYPE_NR * smp_processor_id();
|
|
vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);
|
|
+ WARN_ON(!pte_none(*(kmap_pte - idx)));
|
|
+
|
|
#ifdef CONFIG_PREEMPT_RT_FULL
|
|
current->kmap_pte[type] = pte;
|
|
#endif
|
|
--
|
|
2.28.0
|
|
|