From: Tomas Hruby Date: Tue, 18 Oct 2011 18:21:07 +0000 (+0000) Subject: VM - vm_unmap() takes SELF as valid argument X-Git-Tag: v3.2.0~127 X-Git-Url: http://zhaoyanbai.com/repos/rndc.html?a=commitdiff_plain;h=88f990e12265c04867235e7d7b3e94a37c36e7cc;p=minix.git VM - vm_unmap() takes SELF as valid argument --- diff --git a/servers/vm/mmap.c b/servers/vm/mmap.c index e458fc5cc..2659b6e45 100644 --- a/servers/vm/mmap.c +++ b/servers/vm/mmap.c @@ -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;