Hi, I tested it and everything works fine. I'm attaching the two patches for convenience.
About the name, feel free to change it if you want, although I think if we rename it then the function should be moved to vm_map.c, maybe just below vm_region()