Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fix spl leak.
details: https://anonhg.NetBSD.org/src/rev/328da7a34aee
branches: trunk
changeset: 358735:328da7a34aee
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Jan 15 09:26:21 2018 +0000
description:
Fix spl leak.
ifconfig gif0 create
ifconfig gif0 destroy
WARNING: SPL NOT LOWERED ON ...
diffstat:
sys/net/if_gif.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 895ef4532016 -r 328da7a34aee sys/net/if_gif.c
--- a/sys/net/if_gif.c Mon Jan 15 08:45:19 2018 +0000
+++ b/sys/net/if_gif.c Mon Jan 15 09:26:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gif.c,v 1.137 2017/12/21 09:35:38 knakahara Exp $ */
+/* $NetBSD: if_gif.c,v 1.138 2018/01/15 09:26:21 maxv Exp $ */
/* $KAME: if_gif.c,v 1.76 2001/08/20 02:01:02 kjc Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.137 2017/12/21 09:35:38 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.138 2018/01/15 09:26:21 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1126,6 +1126,9 @@
mutex_exit(&sc->gif_lock);
encap_lock_exit();
kmem_free(nvar, sizeof(*nvar));
+#ifndef GIF_MPSAFE
+ splx(s);
+#endif
return;
}
Home |
Main Index |
Thread Index |
Old Index