]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Acquire a read lock on the map inside of vm_map_check_protection() rather
authoralc <alc@FreeBSD.org>
Sun, 17 Mar 2002 03:19:31 +0000 (03:19 +0000)
committeralc <alc@FreeBSD.org>
Sun, 17 Mar 2002 03:19:31 +0000 (03:19 +0000)
commit227f4f1377adfc8f4a63826da35c5e87456a473e
tree3fd13b03ff318882c0192220ac50fc5876b14702
parent0fa4622b6586ab2df8824be20c60990998953acd
Acquire a read lock on the map inside of vm_map_check_protection() rather
than expecting the caller to do so.  This (1) eliminates duplicated code in
kernacc() and useracc() and (2) fixes missing synchronization in munmap().
sys/vm/vm_glue.c
sys/vm/vm_map.c