Don't leak lock when returning.
PR: kern/177888 Submitted by: Sven-Thorsten Dietrich <sven vyatta com> MFC after: 1 week
This commit is contained in:
parent
f1fca82ed5
commit
c1031303f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249559
@ -824,6 +824,7 @@ set_api_config(uint32_t *apival)
|
||||
|
||||
for (i = 0; i < mfchashsize; i++) {
|
||||
if (LIST_FIRST(&V_mfchashtbl[i]) != NULL) {
|
||||
MFC_UNLOCK();
|
||||
*apival = 0;
|
||||
return EPERM;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user