From be667a4234fb7066e2304c35fba40699263a2910 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 11 Nov 2005 20:48:43 +0000 Subject: Make sure zaptel doesn't crash the kernel when bringing hdlc devices down git-svn-id: http://svn.digium.com/svn/zaptel/trunk@815 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zaptel.c b/zaptel.c index c1a3248..5369faa 100755 --- a/zaptel.c +++ b/zaptel.c @@ -1269,7 +1269,8 @@ static int zt_net_open(hdlc_device *hdlc) #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) { -- cgit v1.2.3