summaryrefslogtreecommitdiffstats
path: root/src/net
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/net
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/net')
-rw-r--r--src/net/infiniband.c1
-rw-r--r--src/net/netdevice.c1
-rw-r--r--src/net/retry.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/net/infiniband.c b/src/net/infiniband.c
index 2d8b63ec2..539c52906 100644
--- a/src/net/infiniband.c
+++ b/src/net/infiniband.c
@@ -802,6 +802,7 @@ static void ib_step ( struct process *process __unused ) {
/** Infiniband event queue process */
struct process ib_process __permanent_process = {
+ .list = LIST_HEAD_INIT ( ib_process.list ),
.step = ib_step,
};
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index e16ebaa07..3bb0574da 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -625,5 +625,6 @@ static void net_step ( struct process *process __unused ) {
/** Networking stack process */
struct process net_process __permanent_process = {
+ .list = LIST_HEAD_INIT ( net_process.list ),
.step = net_step,
};
diff --git a/src/net/retry.c b/src/net/retry.c
index 3ca69362b..40f656f2a 100644
--- a/src/net/retry.c
+++ b/src/net/retry.c
@@ -187,5 +187,6 @@ static void retry_step ( struct process *process __unused ) {
/** Retry timer process */
struct process retry_process __permanent_process = {
+ .list = LIST_HEAD_INIT ( retry_process.list ),
.step = retry_step,
};