diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-12 01:57:09 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-12 01:57:09 +0100 |
commit | b163e2a6181c805bb2369458203a6af23bf4669e (patch) | |
tree | 82dc7cf73b3bb7ee7b26dd42e538dd039369ae32 | |
parent | aa8a47f7b9da61e689b0c4bb37e7a2a84ece6dac (diff) |
vm: Fix checking lock
-rw-r--r-- | vm/vm_map.c | 2 |
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 |