Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net This should do it!



details:   https://anonhg.NetBSD.org/src/rev/785ac94e6a3b
branches:  trunk
changeset: 449811:785ac94e6a3b
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Mar 25 01:06:34 2019 +0000

description:
This should do it!

Remove the zombie unit from the zombie list, not the regular list!

diffstat:

 sys/net/if_tun.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d3da34c631c5 -r 785ac94e6a3b sys/net/if_tun.c
--- a/sys/net/if_tun.c  Mon Mar 25 01:01:29 2019 +0000
+++ b/sys/net/if_tun.c  Mon Mar 25 01:06:34 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tun.c,v 1.150 2019/03/25 01:01:29 pgoyette Exp $    */
+/*     $NetBSD: if_tun.c,v 1.151 2019/03/25 01:06:34 pgoyette Exp $    */
 
 /*
  * Copyright (c) 1988, Julian Onions <jpo%cs.nott.ac.uk@localhost>
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.150 2019/03/25 01:01:29 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.151 2019/03/25 01:06:34 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -194,7 +194,7 @@
                if (unit == tp->tun_unit)
                        break;
        if (tp)
-               LIST_REMOVE(tp, tun_list);
+               LIST_REMOVE(tp, tunz_list);
        mutex_exit(&tun_softc_lock);
        KASSERTMSG(!tp || (tp->tun_flags & (TUN_INITED|TUN_OPEN)) == TUN_OPEN,
            "tun%d: inconsistent flags: %x", unit, tp->tun_flags);



Home | Main Index | Thread Index | Old Index