summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-12 01:57:09 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-12 01:57:09 +0100
commitb163e2a6181c805bb2369458203a6af23bf4669e (patch)
tree82dc7cf73b3bb7ee7b26dd42e538dd039369ae32
parentaa8a47f7b9da61e689b0c4bb37e7a2a84ece6dac (diff)
vm: Fix checking lock
-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