svn commit: r223822 - head/sys/netgraph/netflow

Gleb Smirnoff glebius at FreeBSD.org
Wed Jul 6 09:43:26 UTC 2011


Author: glebius
Date: Wed Jul  6 09:43:25 2011
New Revision: 223822
URL: http://svn.freebsd.org/changeset/base/223822

Log:
  Add missing unlocks.

Modified:
  head/sys/netgraph/netflow/netflow.c

Modified: head/sys/netgraph/netflow/netflow.c
==============================================================================
--- head/sys/netgraph/netflow/netflow.c	Wed Jul  6 07:13:28 2011	(r223821)
+++ head/sys/netgraph/netflow/netflow.c	Wed Jul  6 09:43:25 2011	(r223822)
@@ -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);
 			}
 		}


More information about the svn-src-all mailing list