Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Add missing pserialize_read_exit
details: https://anonhg.NetBSD.org/src/rev/c8b44b37f888
branches: trunk
changeset: 352081:c8b44b37f888
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Mar 14 09:39:28 2017 +0000
description:
Add missing pserialize_read_exit
Pointed out by riastradh@
diffstat:
sys/net/rtsock.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 063fe124e7ac -r c8b44b37f888 sys/net/rtsock.c
--- a/sys/net/rtsock.c Tue Mar 14 09:22:37 2017 +0000
+++ b/sys/net/rtsock.c Tue Mar 14 09:39:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsock.c,v 1.207 2017/03/14 09:03:08 ozaki-r Exp $ */
+/* $NetBSD: rtsock.c,v 1.208 2017/03/14 09:39:28 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.207 2017/03/14 09:03:08 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.208 2017/03/14 09:39:28 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1711,8 +1711,10 @@
_s = pserialize_read_enter();
ifa_release(ifa, &_psref);
- if (error != 0)
+ if (error != 0) {
+ pserialize_read_exit(_s);
goto release_exit;
+ }
}
pserialize_read_exit(_s);
info.rti_info[RTAX_IFA] = info.rti_info[RTAX_NETMASK] =
Home |
Main Index |
Thread Index |
Old Index