svn commit: r340578 - stable/11/sys/netpfil/pf

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


Author: kp
Date: Sun Nov 18 13:03:48 2018
New Revision: 340578
URL: https://svnweb.freebsd.org/changeset/base/340578

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/11/sys/netpfil/pf/if_pfsync.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netpfil/pf/if_pfsync.c
==============================================================================
--- stable/11/sys/netpfil/pf/if_pfsync.c	Sun Nov 18 12:59:10 2018	(r340577)
+++ stable/11/sys/netpfil/pf/if_pfsync.c	Sun Nov 18 13:03:48 2018	(r340578)
@@ -1392,6 +1392,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-all mailing list