Module Name: src
Committed By: rin
Date: Wed Aug 14 22:24:09 UTC 2024
Modified Files:
src/sys/uvm: uvm_map.c
Log Message:
uvm_map: Fix build failure with DIAGNOSTIC for rev 1.422
PR kern/51254: uvm assertion "!topdown || hint <= orig_hint" failed
To generate a diff of this commit:
cvs rdiff -u -r1.423 -r1.424 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.423 src/sys/uvm/uvm_map.c:1.424
--- src/sys/uvm/uvm_map.c:1.423 Wed Aug 14 21:05:11 2024
+++ src/sys/uvm/uvm_map.c Wed Aug 14 22:24:09 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.423 2024/08/14 21:05:11 riastradh Exp $ */
+/* $NetBSD: uvm_map.c,v 1.424 2024/08/14 22:24:09 rin 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.423 2024/08/14 21:05:11 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.424 2024/08/14 22:24:09 rin Exp $");
#include "opt_ddb.h"
#include "opt_pax.h"
@@ -1868,7 +1868,7 @@ uvm_findspace_invariants(struct vm_map *
map, hint, topdown ? ">" : "<", orig_hint,
length, uobj, (unsigned long long)uoffset, align,
flags, entry, entry ? entry->start : 0, entry ? entry->end : 0,
- entry && entry->next,
+ entry ? entry->next : NULL,
entry && entry->next ? entry->next->start : 0,
entry && entry->next ? entry->next->end : 0,
line);