[Asterisk-cvs] zaptel zaptel.c,1.124,1.125

mattf mattf
Fri Nov 11 15:58:03 CST 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv17789

Modified Files:
	zaptel.c 
Log Message:
Make sure zaptel doesn't crash the kernel when bringing hdlc devices down


Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- zaptel.c	4 Oct 2005 20:34:36 -0000	1.124
+++ zaptel.c	11 Nov 2005 20:48:43 -0000	1.125
@@ -1269,7 +1269,8 @@
 #ifdef NEW_HDLC_INTERFACE
 static int zt_net_stop(struct net_device *dev)
 {
-	hdlc_device *hdlc = dev_to_hdlc(dev);
+	hdlc_device *h = dev_to_hdlc(dev);
+	struct zt_hdlc *hdlc = h->priv;
 #else
 static void zt_net_close(hdlc_device *hdlc)
 {




More information about the svn-commits mailing list