From a7233fcd7bd8cb41380d1d2cd9eddc6050dad5ae Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 22 Jan 2019 23:51:30 +0000 Subject: [PATCH] makeproc: fix comment and also fix it to use the right udata --- Kernel/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/process.c b/Kernel/process.c index d340d91a..b4bb47c8 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -265,7 +265,7 @@ ptptr getproc(void) } #endif -/* Newproc fixes up the tables for the child of a fork but also for init +/* Makeproc fixes up the tables for the child of a fork but also for init * Call in the processes context! * This process MUST be run immediately (since it sets status P_RUNNING) * @@ -307,7 +307,7 @@ void makeproc(regptr ptptr p, u_data *u) /* For systems where udata is actually a pointer or a register object */ #ifdef udata - p->p_udata = &udata; + p->p_udata = u; #endif u->u_ptab = p; /* Fixup from parent */ -- 2.34.1