summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-07-03 08:29:25 -0500
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2014-02-26 21:13:57 -0500
commit25a04e21e543275f8f63d812eb1d377ad414b29e (patch)
treeee292d8d2fbdbfae4002c3d3de24b451005f014a /arch
parent9d5717d3c6fa23a6d3fc1ce3632a3ce2e8b71859 (diff)
downloadlinux-rt-25a04e21e543275f8f63d812eb1d377ad414b29e.tar.gz
x86: highmem: Replace BUG_ON by WARN_ON
The machine might survive that problem and be at least in a state which allows us to get more information about the problem. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/mm/highmem_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c
index 6f31ee56c008..ab8683ade5c8 100644
--- a/arch/x86/mm/highmem_32.c
+++ b/arch/x86/mm/highmem_32.c
@@ -43,7 +43,7 @@ void *kmap_atomic_prot(struct page *page, pgprot_t prot)
type = kmap_atomic_idx_push();
idx = type + KM_TYPE_NR*smp_processor_id();
vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);
- BUG_ON(!pte_none(*(kmap_pte-idx)));
+ WARN_ON(!pte_none(*(kmap_pte-idx)));
set_pte(kmap_pte-idx, mk_pte(page, prot));
arch_flush_lazy_mmu_mode();