mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-07 13:14:51 +00:00
Add missing unlocks.
This commit is contained in:
parent
c909243f40
commit
acfc07098c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223822
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user