From c6c6b49c67a1768e82859e4dd0efbeb5e0452d87 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Nov 2009 21:54:46 +0100 Subject: Do not fail if no PTE maps virtual address 0 * i386/intel/pmap.c (pmap_unmap_page_zero): Do not fail if no PTE maps virtual address 0. --- i386/intel/pmap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'i386') diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index bc3acfc..c633fd9 100644 --- a/i386/intel/pmap.c +++ b/i386/intel/pmap.c @@ -2410,6 +2410,8 @@ pmap_unmap_page_zero () int *pte; pte = (int *) pmap_pte (kernel_pmap, 0); + if (!pte) + return; assert (pte); *pte = 0; INVALIDATE_TLB(kernel_pmap, 0, PAGE_SIZE); -- cgit v1.2.3