git: kernel - Fix panic in mlock() and munlock()

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Feb 2 14:31:06 PST 2019


commit 0b29ed9db0e8752336147f83a5d6eaa76234848c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Feb 2 14:29:40 2019 -0800

    kernel - Fix panic in mlock() and munlock()
    
    * Fix a degenerate case when mlock() or munlock() is called
      with a size of 0.  Silently allow the case and return success
      (0).
    
    * Fixes vm_map panic.

Summary of changes:
 sys/vm/vm_mmap.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0b29ed9db0e8752336147f83a5d6eaa76234848c


-- 
DragonFly BSD source repository



More information about the Commits mailing list