summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ksocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_ksocket.c')
-rw-r--r--sys/netgraph/ng_ksocket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c
index 60b4c3a..94291d9 100644
--- a/sys/netgraph/ng_ksocket.c
+++ b/sys/netgraph/ng_ksocket.c
@@ -1001,6 +1001,8 @@ ng_ksocket_disconnect(hook_p hook)
* the request has at least been done, but the 'so' may not be so lucky.
* handle this by checking the validity of the node in the target function
* before dereferencing the socket pointer.
+ *
+ * To decouple stack, we use queue version of ng_send_fn().
*/
static void
@@ -1008,7 +1010,7 @@ ng_ksocket_incoming(struct socket *so, void *arg, int waitflag)
{
const node_p node = arg;
- ng_send_fn(node, NULL, &ng_ksocket_incoming2, so, waitflag);
+ ng_queue_fn(node, NULL, &ng_ksocket_incoming2, so, waitflag);
}
OpenPOWER on IntegriCloud