From: David van Moolenbroek Date: Mon, 3 Nov 2014 11:18:30 +0000 (+0000) Subject: VM: fix returning VFS error code for mmap X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F2863%2F1;p=minix.git VM: fix returning VFS error code for mmap Change-Id: Ifcaa15fb8277be53515eb18c4f86a306c52d91d6 --- diff --git a/minix/servers/vm/mmap.c b/minix/servers/vm/mmap.c index d6cc1cda8..19fbc9d02 100644 --- a/minix/servers/vm/mmap.c +++ b/minix/servers/vm/mmap.c @@ -175,7 +175,7 @@ static void mmap_file_cont(struct vmproc *vmp, message *replymsg, void *cbarg, printf("VM: VFS reply failed (%d)\n", replymsg->VMV_RESULT); sys_diagctl_stacktrace(vmp->vm_endpoint); #endif - result = origmsg->VMV_RESULT; + result = replymsg->VMV_RESULT; } else { /* Finish mmap */ result = mmap_file(vmp, replymsg->VMV_FD, origmsg->m_mmap.offset,