summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 03d22ea1..09f23e3d 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -2067,7 +2067,7 @@ kern_return_t vm_map_delete(
/*
* Must be called with map lock taken unless refcount is zero
*/
- assert((map->ref_count > 0 && have_lock(map->lock)) || (map->ref_count == 0));
+ assert((map->ref_count > 0 && have_lock(&map->lock)) || (map->ref_count == 0));
/*
* Find the start of the region, and clip it