From: Ben Gras Date: Mon, 19 Jul 2010 18:19:38 +0000 (+0000) Subject: vm: add missing USE() macros in utility.c. X-Git-Tag: v3.1.8~190 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=77267ca28b3dd71458ad3d66e57c930ccda2bedf;p=minix.git vm: add missing USE() macros in utility.c. --- diff --git a/servers/vm/utility.c b/servers/vm/utility.c index 54c137083..339a5599f 100644 --- a/servers/vm/utility.c +++ b/servers/vm/utility.c @@ -29,6 +29,7 @@ #include "glo.h" #include "util.h" #include "region.h" +#include "sanitycheck.h" #include #include "kernel/const.h" @@ -279,10 +280,10 @@ PUBLIC int swap_proc(endpoint_t src_e, endpoint_t dst_e) /* Preserve vir_region's parents. */ for(vr = src_vmp->vm_regions; vr; vr = vr->next) { - vr->parent = src_vmp; + USE(vr, vr->parent = src_vmp;); } for(vr = dst_vmp->vm_regions; vr; vr = vr->next) { - vr->parent = dst_vmp; + USE(vr, vr->parent = dst_vmp;); } /* Adjust page tables. */