pfsync: Add missing unlock
If we fail to set up the multicast entry for pfsync and return an error we must release the pfsync lock first. MFC after: 2 weeks Sponsored by: Orange Business Services Differential Revision: https://reviews.freebsd.org/D17506
This commit is contained in:
parent
3e00fc7403
commit
ce2fde0f6e
@ -1394,6 +1394,7 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
||||
if (error) {
|
||||
if_rele(sifp);
|
||||
free(mship, M_PFSYNC);
|
||||
PFSYNC_UNLOCK(sc);
|
||||
return (error);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user