vkernel - Adjust to fix buildkernel
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 May 2018 23:51:44 +0000 (16:51 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 May 2018 23:51:44 +0000 (16:51 -0700)
* Adjust to fix buildkernel

sys/platform/vkernel64/x86_64/trap.c

index cd79184..21ed565 100644 (file)
@@ -1085,6 +1085,8 @@ syscall2(struct trapframe *frame)
        if (lp->lwp_vkernel && lp->lwp_vkernel->ve) {
                vkernel_trap(lp, frame);
                error = EJUSTRETURN;
+               callp = NULL;
+               code = 0;
                goto out;
        }
 
@@ -1117,11 +1119,13 @@ syscall2(struct trapframe *frame)
        argp = &frame->tf_rdi;
        argp += reg;
        argsdst = (register_t *)(&args.nosys.sysmsg + 1);
+
        /*
         * JG can we overflow the space pointed to by 'argsdst'
         * either with 'bcopy' or with 'copyin'?
         */
        bcopy(argp, argsdst, sizeof(register_t) * regcnt);
+
        /*
         * copyin is MP aware, but the tracing code is not
         */