Module Name:    src
Committed By:   riastradh
Date:           Sun Mar 13 21:31:47 UTC 2022

Modified Files:
        src/sys/net: if_tun.c

Log Message:
tun(4): Add missing cv_destroy in tunclose.


To generate a diff of this commit:
cvs rdiff -u -r1.164 -r1.165 src/sys/net/if_tun.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_tun.c
diff -u src/sys/net/if_tun.c:1.164 src/sys/net/if_tun.c:1.165
--- src/sys/net/if_tun.c:1.164	Sun Sep 26 15:58:33 2021
+++ src/sys/net/if_tun.c	Sun Mar 13 21:31:47 2022
@@ -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 <j...@cs.nott.ac.uk>
@@ -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 @@ tunclose(dev_t dev, int flag, int mode,
 		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;
 	}

Reply via email to