Messages in this thread Patch in this message | | | Date | Wed, 11 Mar 2009 23:34:50 +0900 | From | Akinobu Mita <> | Subject | [PATCH 2/2] x86: debug check for kmap_atomic_pfn and iomap_atomic_prot_pfn() |
| |
It may be useful for kmap_atomic_pfn() and iomap_atomic_prot_pfn() to check invalid kmap usage as well as kmap_atomic.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: <x86@kernel.org> --- arch/x86/mm/highmem_32.c | 2 ++ 1 file changed, 2 insertions(+)
Index: 2.6-mmotm/arch/x86/mm/highmem_32.c =================================================================== --- 2.6-mmotm.orig/arch/x86/mm/highmem_32.c +++ 2.6-mmotm/arch/x86/mm/highmem_32.c @@ -128,6 +128,8 @@ void *kmap_atomic_prot_pfn(unsigned long pagefault_disable(); + debug_kmap_atomic_prot(type); + idx = type + KM_TYPE_NR * smp_processor_id(); vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); set_pte(kmap_pte - idx, pfn_pte(pfn, prot));
| |