Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2007 22:28:39 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 116371 for review
Message-ID:  <200703222228.l2MMSdvC049605@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=116371

Change 116371 by gonzo@gonzo_jeeves on 2007/03/22 22:27:56

	o Handle a case of unallocated segmap in pmap_protect.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/pmap.c#23 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/pmap.c#23 (text+ko) ====

@@ -1140,7 +1140,7 @@
 		 * If pte is invalid, skip this page
 		 */
 		pte = pmap_pte(pmap, sva);
-		if (!pte_valid(pte)) {
+		if ((pte == NULL) || !pte_valid(pte)) {
 			sva += PAGE_SIZE;
 			continue;
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703222228.l2MMSdvC049605>