Author: kp
Date: Sun Nov 18 13:03:49 2018
New Revision: 340579
URL: https://svnweb.freebsd.org/changeset/base/340579
Log:
MFC r340072:
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.
Sponsored by: Orange Business Services
Modified:
stable/12/sys/netpfil/pf/if_pfsync.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netpfil/pf/if_pfsync.c
==============================================================================
--- stable/12/sys/netpfil/pf/if_pfsync.c Sun Nov 18 13:03:48 2018
(r340578)
+++ stable/12/sys/netpfil/pf/if_pfsync.c Sun Nov 18 13:03:49 2018
(r340579)
@@ -1394,6 +1394,7 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t dat
if (error) {
if_rele(sifp);
free(mship, M_PFSYNC);
+ PFSYNC_UNLOCK(sc);
return (error);
}
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"