Module Name:    src
Committed By:   ozaki-r
Date:           Wed Nov  2 03:43:27 UTC 2016

Modified Files:
        src/sys/netinet6: nd6.c

Log Message:
Add missing pserialize_read_exit


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/sys/netinet6/nd6.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet6/nd6.c
diff -u src/sys/netinet6/nd6.c:1.209 src/sys/netinet6/nd6.c:1.210
--- src/sys/netinet6/nd6.c:1.209	Tue Oct 18 07:30:31 2016
+++ src/sys/netinet6/nd6.c	Wed Nov  2 03:43:27 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: nd6.c,v 1.209 2016/10/18 07:30:31 ozaki-r Exp $	*/
+/*	$NetBSD: nd6.c,v 1.210 2016/11/02 03:43:27 ozaki-r Exp $	*/
 /*	$KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $	*/
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.209 2016/10/18 07:30:31 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.210 2016/11/02 03:43:27 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -2259,8 +2259,10 @@ nd6_output(struct ifnet *ifp, struct ifn
 			 * when the outgoing interface is p2p.
 			 * XXX: we may need a more generic rule here.
 			 */
-			if ((ifp->if_flags & IFF_POINTOPOINT) == 0)
+			if ((ifp->if_flags & IFF_POINTOPOINT) == 0) {
+				pserialize_read_exit(s);
 				senderr(EHOSTUNREACH);
+			}
 
 			pserialize_read_exit(s);
 			goto sendpkt;

Reply via email to