summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/process.h
diff options
context:
space:
mode:
authorMichael Brown2009-08-10 02:09:41 +0200
committerMichael Brown2009-08-10 20:27:24 +0200
commit04878ef74512df49803d1119c72c49cd8f1bfe10 (patch)
treeadd5a2af82095b9f731c90652e1f6d2b72a629f3 /src/include/gpxe/process.h
parent[infiniband] Handle duplicate Communication Management REPs (diff)
downloadipxe-04878ef74512df49803d1119c72c49cd8f1bfe10.tar.gz
ipxe-04878ef74512df49803d1119c72c49cd8f1bfe10.tar.xz
ipxe-04878ef74512df49803d1119c72c49cd8f1bfe10.zip
[process] Make it safe to call process_add() multiple times
Diffstat (limited to 'src/include/gpxe/process.h')
-rw-r--r--src/include/gpxe/process.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/gpxe/process.h b/src/include/gpxe/process.h
index a4609191..944858d7 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;
}