Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2018 13:03:48 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r340578 - stable/11/sys/netpfil/pf
Message-ID:  <201811181303.wAID3meX079412@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 			}
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811181303.wAID3meX079412>