diff options
author | glebius <glebius@FreeBSD.org> | 2011-07-06 09:43:25 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-07-06 09:43:25 +0000 |
commit | 7893f5ef5d34ac7a7aef842558d61d6b921fa66e (patch) | |
tree | b6104bb2882ed4d73c9d94fabbcec9c267851868 /sys | |
parent | 8ac701c9826e188a3f168c8a8b8f7c078648d235 (diff) | |
download | FreeBSD-src-7893f5ef5d34ac7a7aef842558d61d6b921fa66e.zip FreeBSD-src-7893f5ef5d34ac7a7aef842558d61d6b921fa66e.tar.gz |
Add missing unlocks.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netgraph/netflow/netflow.c | 2 |
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); } } |