Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet carp: don't skip pserialize_read_enter and ifa_r...
details: https://anonhg.NetBSD.org/src/rev/3b0fe7230c31
branches: trunk
changeset: 997582:3b0fe7230c31
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Mar 14 07:05:07 2019 +0000
description:
carp: don't skip pserialize_read_enter and ifa_release
diffstat:
sys/netinet/ip_carp.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 2f69b06362b5 -r 3b0fe7230c31 sys/netinet/ip_carp.c
--- a/sys/netinet/ip_carp.c Thu Mar 14 03:52:40 2019 +0000
+++ b/sys/netinet/ip_carp.c Thu Mar 14 07:05:07 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_carp.c,v 1.101 2018/12/22 14:28:57 maxv Exp $ */
+/* $NetBSD: ip_carp.c,v 1.102 2019/03/14 07:05:07 ozaki-r Exp $ */
/* $OpenBSD: ip_carp.c,v 1.113 2005/11/04 08:11:54 mcbride Exp $ */
/*
@@ -33,7 +33,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_carp.c,v 1.101 2018/12/22 14:28:57 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_carp.c,v 1.102 2019/03/14 07:05:07 ozaki-r Exp $");
/*
* TODO:
@@ -410,7 +410,7 @@
ifatoia(ifa), CARP_COUNT_MASTER);
if ((cmd == RTM_ADD && count != 1) ||
(cmd == RTM_DELETE && count != 0))
- continue;
+ goto next;
}
/* Remove the existing host route, if any */
@@ -485,6 +485,7 @@
default:
break;
}
+ next:
s = pserialize_read_enter();
ifa_release(ifa, &psref);
}
Home |
Main Index |
Thread Index |
Old Index