From acfc07098c31d7c51c443174568809ec7f8e3423 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 6 Jul 2011 09:43:25 +0000 Subject: [PATCH] Add missing unlocks. --- sys/netgraph/netflow/netflow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c index 5a9932ee36d3..8ec5629af613 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); } }