Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Add missing pserialize_read_exit
details: https://anonhg.NetBSD.org/src/rev/7249dbd39f10
branches: trunk
changeset: 348682:7249dbd39f10
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Nov 02 03:43:27 2016 +0000
description:
Add missing pserialize_read_exit
diffstat:
sys/netinet6/nd6.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r b0295d81b310 -r 7249dbd39f10 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c Wed Nov 02 03:21:38 2016 +0000
+++ b/sys/netinet6/nd6.c Wed Nov 02 03:43:27 2016 +0000
@@ -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 @@
* 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;
Home |
Main Index |
Thread Index |
Old Index