From cb3a6387c805d68ac954124bb214195abac21583 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Mon, 3 Nov 2014 11:18:30 +0000 Subject: [PATCH] VM: fix returning VFS error code for mmap Change-Id: Ifcaa15fb8277be53515eb18c4f86a306c52d91d6 --- minix/servers/vm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,