Add missing unlocks.

This commit is contained in:
Gleb Smirnoff 2011-07-06 09:43:25 +00:00
parent c909243f40
commit acfc07098c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223822

View File

@ -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);
}
}