[Midnightbsd-cvs] src [8917] trunk/sys/netgraph/ng_base.c: Ensure that all cases that enqueue a netgraph item for delivery by a ngthread properly set the item depth to 1.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Sep 26 18:53:11 EDT 2016
Revision: 8917
http://svnweb.midnightbsd.org/src/?rev=8917
Author: laffer1
Date: 2016-09-26 18:53:11 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
Ensure that all cases that enqueue a netgraph item for delivery by a ngthread properly set the item depth to 1.
Modified Paths:
--------------
trunk/sys/netgraph/ng_base.c
Modified: trunk/sys/netgraph/ng_base.c
===================================================================
--- trunk/sys/netgraph/ng_base.c 2016-09-26 22:52:31 UTC (rev 8916)
+++ trunk/sys/netgraph/ng_base.c 2016-09-26 22:53:11 UTC (rev 8917)
@@ -2006,6 +2006,7 @@
NGI_SET_WRITER(item);
else
NGI_SET_READER(item);
+ item->depth = 1;
NG_QUEUE_LOCK(ngq);
/* Set OP_PENDING flag and enqueue the item. */
@@ -2284,7 +2285,6 @@
}
if (queue) {
- item->depth = 1;
/* Put it on the queue for that node*/
ng_queue_rw(node, item, rw);
return ((flags & NG_PROGRESS) ? EINPROGRESS : 0);
More information about the Midnightbsd-cvs
mailing list