Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net LIST_REMOVE should be done before clearing members o...
details: https://anonhg.NetBSD.org/src/rev/5ccf557129d8
branches: trunk
changeset: 342026:5ccf557129d8
user: knakahara <knakahara%NetBSD.org@localhost>
date: Thu Dec 03 03:03:58 2015 +0000
description:
LIST_REMOVE should be done before clearing members of the list element.
diffstat:
sys/net/if_gif.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r a6016bd9a4c0 -r 5ccf557129d8 sys/net/if_gif.c
--- a/sys/net/if_gif.c Thu Dec 03 02:57:47 2015 +0000
+++ b/sys/net/if_gif.c Thu Dec 03 03:03:58 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gif.c,v 1.93 2015/12/03 02:50:49 knakahara Exp $ */
+/* $NetBSD: if_gif.c,v 1.94 2015/12/03 03:03:58 knakahara 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.93 2015/12/03 02:50:49 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.94 2015/12/03 03:03:58 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -160,9 +160,9 @@
{
struct gif_softc *sc = (void *) ifp;
- gif_delete_tunnel(&sc->gif_if);
LIST_REMOVE(sc, gif_list);
+ gif_delete_tunnel(&sc->gif_if);
bpf_detach(ifp);
if_detach(ifp);
rtcache_free(&sc->gif_ro);
Home |
Main Index |
Thread Index |
Old Index