Module Name:    src
Committed By:   ad
Date:           Sat Mar 14 17:29:53 UTC 2020

Modified Files:
        src/sys/uvm: uvm_map.c

Log Message:
uvm_map_lookup_entry(): save the hint even on failure, since code elsewhere
relies on it pointing to the previous entry.


To generate a diff of this commit:
cvs rdiff -u -r1.373 -r1.374 src/sys/uvm/uvm_map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.373 src/sys/uvm/uvm_map.c:1.374
--- src/sys/uvm/uvm_map.c:1.373	Sat Mar 14 14:15:43 2020
+++ src/sys/uvm/uvm_map.c	Sat Mar 14 17:29:53 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_map.c,v 1.373 2020/03/14 14:15:43 ad Exp $	*/
+/*	$NetBSD: uvm_map.c,v 1.374 2020/03/14 17:29:53 ad Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.373 2020/03/14 14:15:43 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.374 2020/03/14 17:29:53 ad Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pax.h"
@@ -1719,6 +1719,7 @@ uvm_map_lookup_entry(struct vm_map *map,
 		return (true);
 	}
 
+	SAVE_HINT(map, map->hint, *entry);
 	UVMHIST_LOG(maphist,"<- failed!",0,0,0,0);
 	KDASSERT((*entry) == &map->header || (*entry)->end <= address);
 	KDASSERT((*entry)->next == &map->header ||

Reply via email to