]> Zhao Yanbai Git Server - minix.git/commitdiff
VM: fix returning VFS error code for mmap 63/2863/1
authorDavid van Moolenbroek <david@minix3.org>
Mon, 3 Nov 2014 11:18:30 +0000 (11:18 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 3 Nov 2014 11:19:08 +0000 (11:19 +0000)
Change-Id: Ifcaa15fb8277be53515eb18c4f86a306c52d91d6

minix/servers/vm/mmap.c

index d6cc1cda8f63bb04ed287a061a3d0797cfbaa2d7..19fbc9d02be8272c472944a97aff8f14faeda979 100644 (file)
@@ -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,