Source-Changes-HG archive

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

[src/trunk]: src/sys/net tun(4): Add missing cv_destroy in tunclose.



details:   https://anonhg.NetBSD.org/src/rev/56f58a4c74d1
branches:  trunk
changeset: 363495:56f58a4c74d1
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Mar 13 21:31:47 2022 +0000

description:
tun(4): Add missing cv_destroy in tunclose.

diffstat:

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

diffs (26 lines):

diff -r 2c33c1164ba7 -r 56f58a4c74d1 sys/net/if_tun.c
--- a/sys/net/if_tun.c  Sun Mar 13 20:44:06 2022 +0000
+++ b/sys/net/if_tun.c  Sun Mar 13 21:31:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tun.c,v 1.164 2021/09/26 15:58:33 thorpej Exp $     */
+/*     $NetBSD: if_tun.c,v 1.165 2022/03/13 21:31:47 riastradh 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.164 2021/09/26 15:58:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.165 2022/03/13 21:31:47 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -372,6 +372,7 @@
                softint_disestablish(tp->tun_osih);
                softint_disestablish(tp->tun_isih);
                mutex_destroy(&tp->tun_lock);
+               cv_destroy(&tp->tun_cv);
                kmem_free(tp, sizeof(*tp));
                return 0;
        }



Home | Main Index | Thread Index | Old Index