summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_aoe.c5
-rw-r--r--sys/net/if_aoe.h3
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_aoe.c b/sys/net/if_aoe.c
index 03c1ca3c3d4..1c6f2431000 100644
--- a/sys/net/if_aoe.c
+++ b/sys/net/if_aoe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aoe.c,v 1.2 2010/08/21 06:50:42 blambert Exp $ */
+/* $OpenBSD: if_aoe.c,v 1.3 2011/07/04 03:18:01 tedu Exp $ */
/*
* Copyright (c) 2008 Ted Unangst <tedu@openbsd.org>
*
@@ -54,5 +54,6 @@ aoe_input(struct ifnet *ifp, struct mbuf *m)
return;
}
- workq_queue_task(NULL, &q->task, 0, q->fn, q, m);
+ if (workq_add_task(NULL, 0, q->fn, q, m) != 0)
+ m_freem(m);
}
diff --git a/sys/net/if_aoe.h b/sys/net/if_aoe.h
index d73ee016eea..be577ae74a9 100644
--- a/sys/net/if_aoe.h
+++ b/sys/net/if_aoe.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aoe.h,v 1.2 2010/08/21 06:50:42 blambert Exp $ */
+/* $OpenBSD: if_aoe.h,v 1.3 2011/07/04 03:18:01 tedu Exp $ */
/*
* Copyright (c) 2007 Ted Unangst <tedu@openbsd.org>
*
@@ -104,7 +104,6 @@ struct aoe_handler {
unsigned char minor;
struct ifnet *ifp;
workq_fn fn;
- struct workq_task task;
TAILQ_HEAD(, aoe_req) reqs;
};