diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-08-10 01:09:41 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-08-10 19:27:24 +0100 |
commit | 04878ef74512df49803d1119c72c49cd8f1bfe10 (patch) | |
tree | add5a2af82095b9f731c90652e1f6d2b72a629f3 /src/include | |
parent | 46073f12391e5a467fbf5d5853ea91333fcce843 (diff) | |
download | ipxe-04878ef74512df49803d1119c72c49cd8f1bfe10.tar.gz |
[process] Make it safe to call process_add() multiple times
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gpxe/process.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |