From 04878ef74512df49803d1119c72c49cd8f1bfe10 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 10 Aug 2009 01:09:41 +0100 Subject: [process] Make it safe to call process_add() multiple times --- src/include/gpxe/process.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/gpxe/process.h b/src/include/gpxe/process.h index a46091911..944858d76 100644 --- a/src/include/gpxe/process.h +++ b/src/include/gpxe/process.h @@ -47,6 +47,7 @@ static inline __attribute__ (( always_inline )) void process_init_stopped ( struct process *process, void ( * step ) ( struct process *process ), struct refcnt *refcnt ) { + INIT_LIST_HEAD ( &process->list ); process->step = step; process->refcnt = refcnt; } -- cgit v1.2.3-55-g7522