]> Zhao Yanbai Git Server - minix.git/commitdiff
VM - vm_unmap() takes SELF as valid argument
authorTomas Hruby <thruby@few.vu.nl>
Tue, 18 Oct 2011 18:21:07 +0000 (18:21 +0000)
committerTomas Hruby <tom@minix3.org>
Fri, 13 Jan 2012 11:30:01 +0000 (11:30 +0000)
servers/vm/mmap.c

index e458fc5cc20f1c52701f9e5982c0487d0e9d349a..2659b6e45f38e597d28d8bc4f2c5e144f8731938 100644 (file)
@@ -294,6 +294,8 @@ PUBLIC int do_shared_unmap(message *m)
        vir_bytes addr;
 
        target = m->VMUN_ENDPT;
+       if (target == SELF)
+               target = m->m_source;
 
        if ((r = vm_isokendpt(target, &n)) != OK)
                return EINVAL;