From 32731f2eb1a0a315f882dc575752ec1dab6a01ff Mon Sep 17 00:00:00 2001 From: Doug Moore Date: Mon, 14 Oct 2019 17:51:57 +0000 Subject: [PATCH] Correct a transcription error that broke GENERIC introduced in r353496. --- sys/vm/vm_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 575c7b24ce7e..cec76b76a4a7 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -4813,8 +4813,8 @@ _vm_map_assert_consistent(vm_map_t map) entry->start < entry->right->start, ("map %p start = %jx, right->start = %jx", map, (uintmax_t)entry->start, (uintmax_t)entry->right->start)); - max_left = vm_map_entry_max_free_left(entry, lbound); - max_right = vm_map_entry_max_free_right(entry, ubound); + max_left = vm_map_entry_max_free_left(entry, entry->prev); + max_right = vm_map_entry_max_free_right(entry, entry->next); KASSERT(entry->max_free == MAX(max_left, max_right), ("map %p max = %jx, max_left = %jx, max_right = %jx", map, (uintmax_t)entry->max_free,