VM: fix returning VFS error code for mmap

Change-Id: Ifcaa15fb8277be53515eb18c4f86a306c52d91d6
This commit is contained in:
David van Moolenbroek 2014-11-03 11:18:30 +00:00
parent 1f945e8080
commit cb3a6387c8

View 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,