Module Name:    src
Committed By:   pgoyette
Date:           Sat Aug  6 22:54:34 UTC 2016

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

Log Message:
Destroy the mutex when detaching ppp.  Otherwise on a re-attach (ie,
module reload) we can end up with a panic "lock already initialized"


To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/sys/net/if_ppp.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_ppp.c
diff -u src/sys/net/if_ppp.c:1.155 src/sys/net/if_ppp.c:1.156
--- src/sys/net/if_ppp.c:1.155	Sat Aug  6 12:48:23 2016
+++ src/sys/net/if_ppp.c	Sat Aug  6 22:54:34 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ppp.c,v 1.155 2016/08/06 12:48:23 christos Exp $	*/
+/*	$NetBSD: if_ppp.c,v 1.156 2016/08/06 22:54:34 pgoyette Exp $	*/
 /*	Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp 	*/
 
 /*
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.155 2016/08/06 12:48:23 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.156 2016/08/06 22:54:34 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "ppp.h"
@@ -263,6 +263,8 @@ pppdetach(void)
 	if (error == 0)
 		error = ttyldisc_detach(&ppp_disc);
 
+	mutex_destroy(&ppp_list_lock);
+
 	return error;
 }
 

Reply via email to