svn commit: r340579 - stable/12/sys/netpfil/pf

Kristof Provost kp at FreeBSD.org
Sun Nov 18 13:03:50 UTC 2018


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


More information about the svn-src-stable-12 mailing list