summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netflow
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2011-07-06 09:43:25 +0000
committerglebius <glebius@FreeBSD.org>2011-07-06 09:43:25 +0000
commit7893f5ef5d34ac7a7aef842558d61d6b921fa66e (patch)
treeb6104bb2882ed4d73c9d94fabbcec9c267851868 /sys/netgraph/netflow
parent8ac701c9826e188a3f168c8a8b8f7c078648d235 (diff)
downloadFreeBSD-src-7893f5ef5d34ac7a7aef842558d61d6b921fa66e.zip
FreeBSD-src-7893f5ef5d34ac7a7aef842558d61d6b921fa66e.tar.gz
Add missing unlocks.
Diffstat (limited to 'sys/netgraph/netflow')
-rw-r--r--sys/netgraph/netflow/netflow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c
index 5a9932ee..8ec5629 100644
--- a/sys/netgraph/netflow/netflow.c
+++ b/sys/netgraph/netflow/netflow.c
@@ -970,6 +970,7 @@ struct ngnf_show_header *resp)
if (hsh->mtx.mtx_lock & MTX_CONTESTED) {
resp->hash_id = i;
resp->list_id = list_id;
+ mtx_unlock(&hsh->mtx);
return (0);
}
@@ -1001,6 +1002,7 @@ struct ngnf_show_header *resp)
* we simply skip to next hash_id.
*/
resp->list_id = list_id + 1;
+ mtx_unlock(&hsh->mtx);
return (0);
}
}
OpenPOWER on IntegriCloud