Fix a typo in mlock(2) error path triggering a double-free.
authormpi <mpi@openbsd.org>
Tue, 21 Dec 2021 22:21:32 +0000 (22:21 +0000)
committermpi <mpi@openbsd.org>
Tue, 21 Dec 2021 22:21:32 +0000 (22:21 +0000)
commit65315d4d4359323af4f23f6d8d3db7f0dfa1e7bc
treeef5258296b474340823d90b1b07f8587f2d332f2
parent57ec09467b7f455f3147a55672af90d023f0a861
Fix a typo in mlock(2) error path triggering a double-free.

Pass the correct entry to uvm_fault_unwire_locked().

Reported-by: syzbot+bb2f63f076618e9ed0d3@syzkaller.appspotmail.com
ok kettenis@, deraadt@
sys/uvm/uvm_map.c