diff options
author | Etienne Brateau <etienne.brateau@gmail.com> | 2023-02-08 23:54:36 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-09 00:01:51 +0100 |
commit | 2fd0fa8b35bcf5a8f9d69437c58608e9bc880957 (patch) | |
tree | 5e98ca9d9e4efe1114f53786c7af66b8987953be /vm | |
parent | 92257f56a32f16795402cdbeb76a8b4f56ea2369 (diff) | |
download | gnumach-2fd0fa8b35bcf5a8f9d69437c58608e9bc880957.tar.gz gnumach-2fd0fa8b35bcf5a8f9d69437c58608e9bc880957.tar.bz2 gnumach-2fd0fa8b35bcf5a8f9d69437c58608e9bc880957.zip |
vm_page.c: add missing object lock
The documentation of vm_page_insert says that the object must be locked.
Moreover, the unlock call is here but no call was present.
Message-Id: <20230208225436.23365-1-etienne.brateau@gmail.com>
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_page.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c index 707be4bb..50916b74 100644 --- a/vm/vm_page.c +++ b/vm/vm_page.c @@ -1034,6 +1034,7 @@ vm_page_seg_balance_page(struct vm_page_seg *seg, simple_unlock(&seg->lock); simple_unlock(&vm_page_queue_free_lock); + vm_object_lock(object); vm_page_insert(dest, object, offset); vm_object_unlock(object); |