diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-14 00:30:01 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-14 00:30:01 +0200 |
commit | dbdf5dc72d025d88d912434203724e177136576e (patch) | |
tree | 957a158dcc97ef934194bc07ad40021447be2ea2 | |
parent | 2d0e623802007a66a3af2ed3c93ef83c22586fe6 (diff) |
Fix return with lock held
vm/vm_map.c (vm_map_enter): Use RETURN instead of return to unlock the
map before returning.
-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 260eb5a..63438d3 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -798,7 +798,7 @@ kern_return_t vm_map_enter( */ if (((start + mask) & ~mask) < start) - return(KERN_NO_SPACE); + RETURN(KERN_NO_SPACE); start = ((start + mask) & ~mask); end = start + size; |