]> Zhao Yanbai Git Server - minix.git/commitdiff
kernel: vm kernel call can't suspend
authorBen Gras <ben@minix3.org>
Fri, 21 Dec 2012 23:27:23 +0000 (23:27 +0000)
committerBen Gras <ben@minix3.org>
Sat, 29 Dec 2012 00:56:46 +0000 (00:56 +0000)
kernel/arch/i386/memory.c

index eb588d7424c45846eea59253dd596d54b0665b0c..eb87a9d9204f99ae61148c75da0c2e643454922d 100644 (file)
@@ -431,6 +431,8 @@ static void vm_suspend(struct proc *caller, const struct proc *target,
 
        RTS_SET(caller, RTS_VMREQUEST);
 
+       assert(caller->p_endpoint != VM_PROC_NR);
+
        caller->p_vmrequest.req_type = VMPTYPE_CHECK;
        caller->p_vmrequest.target = target->p_endpoint;
        caller->p_vmrequest.params.check.start = linaddr;