summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-11-11 20:48:43 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-11-11 20:48:43 +0000
commitbe667a4234fb7066e2304c35fba40699263a2910 (patch)
treef1feef549c4a4ad19a2f98c25a71f8436efd681f
parentcd9ee92486f7b17befea308de566cf74dd62fc25 (diff)
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
-rwxr-xr-xzaptel.c3
1 files changed, 2 insertions, 1 deletions
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)
{